PDA

View Full Version : JRE 1.1 Issues on WinNT


stuka
09-10-2002, 02:21 PM
Ok, anybody got a good link/doc/idea as to how to set up a classpath properly for JRE 1.1? I've got an app, that resides in an appropriate directory (com\company\app\MyClass), and I can't get the darn thing to run. Either I get a 'Class not found' error on MyClass, or the class loader can't find java.lang.Thread...
:wtf:
Any help would be greatly appreciated!
Oh, btw, the command for losing java.lang.Thread is:
java -classpath . com.company.app.MyClass
and I lose my class when I do anything more fancy with the classpath (like adding .;%JAVA_HOME%\lib\rt.jar).

Dru Lee Parsec
09-10-2002, 05:20 PM
For quick and dirty programs I have a directory called C:\Dev_Projects\myjava I put my source code there.

Next, set an environment variable called CLASSPATH that points to C:\Dev_Projects\myjava In NT do this by right clicking on MyComputer, select Properties, then the advanced tab then environment variables.

Start a new MSDos window. Put yoru source code in C:\Dev_Projects\myjava and compile with javac filename.java

To run it type

java filename

It should now work.

kmj
09-10-2002, 09:37 PM
<irc dweeb>
*kmj wins teh bet!
*kmj is teh winn4r!!!
</i d>