Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » add .so file to project
add .so file to project [message #291110] Thu, 08 September 2005 08:09 Go to next message
Al Mising name is currently offline Al Mising nameFriend
Messages: 123
Registered: July 2009
Senior Member
How do you add a .so file to a project (in linux)

I've tried doing it where jar files are added.
I've tried setting a classpath variable.
Neither of these work.
Re: add .so file to project [message #291112 is a reply to message #291110] Thu, 08 September 2005 10:54 Go to previous message
Eclipse UserFriend
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).
Previous Topic:Eclipse 3.x linux: cvs changes file rights
Next Topic:Perspective defined in XML
Goto Forum:
  


Current Time: Wed Apr 24 20:29:01 GMT 2024

Powered by FUDForum. Page generated in 0.02823 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top