Jump to content
  • Advertisement
Sign in to follow this  
pinacolada

[java] using a library in IntelliJ

This topic is 4356 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

Hey I just recently picked up IntelliJ (version 6.0.1) and I'm still trying to figure out the "proper" way to do things. Right now I have a problem, I have a project trying to include a library (specifically the LWJGL library). I was able to successfully include it under Project Libraries, and everything compiles fine. However it fails to run, java tells me "java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path" So I guess question 1 is, why wouldn't the IDE include my libraries in the classpath for me? Anyway I tried to add my libraries manually by adding: -classpath "\libraries" to the VM parameters field in the Run.. dialog. But this seems to have a bad effect on the rest of the command line options, because then I get an error: "java.lang.NoClassDefFoundError: com/intellij/rt/execution/application/AppMain" I guess an alternative solution is to add a "run" target to Ant and use that (I'm pretty sure I can figure out how to correctly set the classpath in Ant).. but am I right in assuming that if I execute the project straight from Ant, that I won't be able to use all the fancy debugging options (like step-through and all that)? Thanks!

Share this post


Link to post
Share on other sites
Advertisement
oops! Never mind. I seem to have misunderstood the error I was getting. It wasn't because my classpath was wrong, but actually b/c I needed to set another property (as per the FAQ I found here http://lwjgl.org/faq.php ).

I would delete this thread but I can't. Oh well!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!