[java] Exception in thread "main" java.lang.NoClassDefFoundError: BasicExample
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
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
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
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).
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).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement