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!!!!!!!!!
Error when running java
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: Error when running java
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
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