|
Re: add .so file to project [message #291112 is a reply to message #291110] |
Thu, 08 September 2005 10:54 |
Eclipse User |
|
|
|
Originally posted by: automatic.javalobby.org
I suspect you mean 'How do I add an .so file such that it is visible to the classes when they run', since adding a file is just a case of importing it into the project.
You have a couple of options:
1) Putting the .so directory in the classpath. You'll need to add the directory that contains the .so, rather than adding the .so itself, so the classpath looks like my\path\here\libme.so and you'd add my\path\here to the classpath.
2) Modify the launch configuration to make it available on the classpath. Use the 'Advanced' button to bring up a list including 'Add External Folder'. You might have to put it in the bootclasspath or the ordinary classpath, depending on how it's fired up.
Remember to use System.loadLibrary("me") to load a library 'libme.so' -- the JVM will put on the standard suffixes and prefixes as necessary (it'd be called 'me.dll' on Windows).
|
|
|
Powered by
FUDForum. Page generated in 0.02823 seconds