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 ]
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 ---
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.
David G. Risner<br />Software Engineer<br />California State University, Los Angeles
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad: