Using *.so files with eclipse

Hey there

I'm having a little problem compiling an application which uses *.so files with eclipse:

If I run eclipse from the directory in which the *.so files are present, the application will run.

However, if I run eclipse from any other directory , the applicationwon't run, stating that the *.so were not found.

I've placed the path to the directory on my $PATH , and tried to add the following line to the VM variables in the RUN menu:

-Djava.class.path=<directory _name>

but to no avail..

Any ideas?

Thank You!

Message was edited by:

Yossale

[625 byte] By [Yossalea] at [2007-10-3 2:38:47]
# 1
You need to add the directory containing the .so files to the environment variable LD_LIBRARY_PATH. Make sure that Eclipse picks up the changes
sabre150a at 2007-7-14 19:37:03 > top of Java-index,Java Essentials,New To Java...
# 2
I added it to the LD path, but nothing changed.How can I check if eclispe picked up the change?
Yossalea at 2007-7-14 19:37:03 > top of Java-index,Java Essentials,New To Java...
# 3
> I added it to the LD path, but nothing changed.> How can I check if eclispe picked up the change?First check that you can now run your program from any directory and then worry about Eclipse.Where did you setup the LD_LIBRARY_PATH?
sabre150a at 2007-7-14 19:37:03 > top of Java-index,Java Essentials,New To Java...
# 4
Yep, I can run my program from every other dirctory using the promp line. I set the LD path like this: setenv LD_LIBRARY_PATH library_name(I work on linux) But eclipse would still not recognize itMessage was edited by: Yossale
Yossalea at 2007-7-14 19:37:03 > top of Java-index,Java Essentials,New To Java...
# 5
I know little about Exclipse (I use Netbeans - someone has to). Does Eclipse have a configuration option to define the library path?I use FC4 and FC5 with bash shell and set up my LD_LIBRARY_PATH in /etc/bashrc.
sabre150a at 2007-7-14 19:37:03 > top of Java-index,Java Essentials,New To Java...
# 6
It does, and it's defined there - but it won't work. (maybe it's personal, I don't know :) )
Yossalea at 2007-7-14 19:37:03 > top of Java-index,Java Essentials,New To Java...
# 7
Ok, it's working now.Apparently the problem really was the LD path, its just that I have a script that runs eclipse, and I forgot that in that script I re- write the LD path..Thank you!
Yossalea at 2007-7-14 19:37:03 > top of Java-index,Java Essentials,New To Java...