Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JCreator: application woes

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Obviously I'm doing something wrong, but I'm not sure what...
The application I'm developing runs fine within JCreator, however, when i move all the .java and .class files to one directory ( c:\test) and run the application via the command line I get class not found exceptions.
My Windows XP classpath is:
.;C:\j2sdk1.4.1\jre\lib\rt.jar;C:\j2sdk1.4.1\lib\tools.jar;C:\j2sdk1.4.1\jre\lib\ext\mysql-connector-j-2.0.14-bin.jar
I'm developing using the JCreator workspace tool and projects.
For a typical project JCreator will pre-pend a a path like: C:\java\ProjectName\classes to the classpath.
Any suggestins as to the remedy here??
I'm going to need to distribute this application and I probably ought to know where what goes...
[ October 07, 2002: Message edited by: Peter Simard ]
 
Peter Simard
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's the latest:
I've got a .bat file in C:\FCPro\classes which I'm launching via a
desktop shortcut, the file looks like this:
javaw Driver2 -classpath .;C:\FCPro\classes
Still getting same behavior, 3 class not found exceptions when launching
this way, however, the program runs fine within JCreator.
I added a few paths to my CLASSPATH environment variable so that it now
looks like:
.;C:\FCPro\classes;C:\java\FoodCoster\classes;C:\j2sdk1.4.1
\jre\lib\rt.jar;C:\j2sdk1.4.1\lib\tools.jar;C:\j2sdk1.4.1
\jre\lib\ext\mysql-connector-j-2.0.14-bin.jar
Any more ideas? I'd be grateful,
Pete
---
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JCreator, do the following:
Go to Options->JDK Tools
Click on <Default>, then click the edit button.
Check the "Show command line" option.
Now when you run the application, JCreator will show the complete command line it uses. Note that the class name comes at the end of the command line.
 
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic