ERROR on EVERY Program

Using the Java SDK with TextPad

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

Post Reply
SCG

ERROR on EVERY Program

Post by SCG »

Hey, All of a sudden, out of the blue, im getting this error when i run any of my programs, even ones that worked befor:

Exception in thread "main" java.lang.NoClassDefFoundError: App4_29

Help please
russ

Re: ERROR on EVERY Program

Post by russ »

I've got the same problem. Help!
Graham

Re: ERROR on EVERY Program

Post by Graham »

This error comes up when java can't find the class file that you're trying to run. Either you haven't compiled the program, or something else is wrong. If you're compiling & running through TextPad, then the .java file & the .class file should be in the same folder. If they are, then try putting .; at the start of your classpath environment variable. On 2000/XP, it's definitely found by right-clicking My Computer, Properties, Advanced, Environment Variables, and then it's under System Variables. If it's not already there, create a new one called CLASSPATH with the value .;
anees mohiuddin

Re: ERROR on EVERY Program

Post by anees mohiuddin »

H:\java\welcome1.java:6: package system does not exist
system.out.println ( "welcome to Java Programming!");
^
1 error

Tool completed with exit code 1
Ton Bode

Re: ERROR on EVERY Program

Post by Ton Bode »

Try System (with uppercase S).

anees mohiuddin wrote:
>
> H:\java\welcome1.java:6: package system does not exist
> system.out.println ( "welcome to Java Programming!");
> ^
> 1 error
>
> Tool completed with exit code 1
Post Reply