Jump to content
  • Advertisement

Archived

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

jhonny

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

This topic is 6161 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!