Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

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

This topic is 6075 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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).

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!