Forums Register Login

problem running JDK

+Pie Number of slices to send: Send
Hi,
I seem to have trouble running my classes. I compile a class, but when I run it, I get error message: "java.lang.NoClassDefFoundError". I get this error even with classes that I know for sure worked before. All of the sudden I started to get this message. What's wrong here?
thanks,
Alex
+Pie Number of slices to send: Send
Alex,
Possible causes of your problem.
1) you might have changed your classpath.
2) if you declare package statement in your class coding, you need to invoke with qualified class name (full package name + class name).
3) do not put ".class" when you run with Java.exe command.
Hope it helps.
sunglasses are a type of coolness prosthetic. Check out the sunglasses on this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 617 times.
Similar Threads
Overriding doubt?
Websphere Application Developer
Annoying DOS window
Inner Class method acess
Problem with strus and IAS 6.5
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 10:04:07.