java problem

Status
Not open for further replies.

backlashwave

Baseband Member
Messages
61
hi
i am b.tech 2 year 1 sem
all my java programs compile but they execute.i get the following message when i try to execute them.
"Exception in thread "main" java.lang.NoClassDefFoundError: j1"
j1 is the name my java file.
plz help me.
 
Thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using the new expression) and no definition of the class could be found.





sounds like your trying to create an object that isn't defined or imported.
 
post up your code, as csamuels says you are trying to use an object that it cannot find the correct class for. have you compiled the class correctly? and is it in your class path?
 
I've had the same proble before. It does sometimes happen when you haven't correctly set everything up. Ensure you have your enviroment variables pointing to the right folder.

Thats one thing which could make a difference?
 
Status
Not open for further replies.
Back
Top Bottom