Page 1 of 1

Error when running java

Posted: Tue Nov 13, 2001 2:38 am
by Kasia
I'm having trouble running java files. I can compile and run in MsDos by typing in the following code to run: java -classpath . HelloWorld
The path is set in aoutexec.bat
When I try to run the same thing from TextPad I get the following error: Exception in thread "main" java.lang.NoClassDefFoundError.HelloWorld
How do I get this to run properly?
Thanks!!!!!!!!!

Re: Error when running java

Posted: Tue Nov 13, 2001 7:54 am
by Henrik Skafsgaard Larsen
There are ways to do this.
1:
Set classpath using the control panel -> System -> Advanced -> Environment variables (Assuming WIN2K is used)

2:
Use a cmd file to set the classpath, path and others

mvh / regards
Henrik Skafsgaard Larsen