[java] Exception in thread "main" java.lang.NoClassDefFoundError: BasicExample

Started by
1 comment, last by jhonny 22 years, 6 months ago
Hi I tried hard to get GF4J working with Sun JDK 1.3.1 without success. Here is my problem: C:\GF4J09~1\examples\src>java -classpath c:\gf4j096rc1\gameframe.jar BasicExample Exception in thread "main" java.lang.NoClassDefFoundError: BasicExample Thanks
Advertisement
Hi!

It looks like your in the sourcepath... Have you compiled the BasicExample?

Otherwise try this before you run the example;
javac -classpath c:\gf4j096rc1\gameframe.jar BasicExample.java

Regards
Johan

Johan Karlsson

Johan Karlsson
And if you have already compiled the class, then you could try:
java -classpath .;c:\gf4j096rc1\gameframe.jar BasicExample

This adds the current directory "." into your classpath (don''t remember which runtimes do this automatically and which dont).
-Pasi Keranen

This topic is closed to new replies.

Advertisement