Jump to content
  • Advertisement
Sign in to follow this  
Rydinare

[java] Eclipse, Java & SWIG

This topic is 3784 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 Guys. I was playing around with SWIG lately and trying to expose some classes to Java. I was successfully able to expose my classes using SWIG, Visual Studio and then running Java from the command line on the .dll produced by VS and the .java files produced from SWIG. However, when I tried it in Eclipse, I kept getting things like the following: Exception in thread "main" java.lang.UnsatisfiedLinkError: no CppSource in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at JavaMud.main(JavaMud.java:5) In Java from the command line, I basically had to set up a few path variables. I couldn't figure out what the equivalent would be in Eclipse to get it to use the dll and java files (I'm assuming this is an Eclipse question). Any ideas? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
In case someone else comes across this, I did solve it by matching a script that sets the PATH to the location where the dll exists prior to launching eclipse. This seemed to do the trick. I was pretty sure there should be another way to do it, based on how Eclipse works, but this will do.

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!