Error when running java

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Kasia

Error when running java

Post 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!!!!!!!!!
Henrik Skafsgaard Larsen

Re: Error when running java

Post 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
Post Reply