Has no-one done this?
I think the problem is when the already loaded .so-file wants to load
other .so's. The java.library.path is set correctly but perhaps only for
tomcat and not for the loaded .so.
I've also tried to copy all of the required files to /usr/lib but
without success.
Andreas And
Caldarale, Charles R wrote:
Take a look at:
http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/step1.html
Hi again. I did take a look but nothing helped me there and I still need
help.
My guess is that tomcat has some restrictions when it comes to loading
native code.
I have several
> From: Andreas Andersson [mailto:[EMAIL PROTECTED]
> Subject: Re: Using native and ld_library_path
>
> I never use System.loadLibrary() in the javacode that does
> work (outside tomcat), do I have to?
Take a look at:
http://java.sun.com/docs/books/tutorial/native1.1/stepby
Caldarale, Charles R wrote:
Yes, except the property name is java.library.path (LD_LIBRARY_PATH is only the environment variable name). The default for Linux systems is /usr/lib:/lib (for UNIX, it's just /usr/lib), so you could put the .so file there.
I tried putting all of the files there but sti
> From: Andreas Andersson [mailto:[EMAIL PROTECTED]
> Subject: Re: Using native and ld_library_path
>
> Could I do something like
> java -DLD_LIBRARY_PATH=/path/to/so-file ?
Yes, except the property name is java.library.path (LD_LIBRARY_PATH is only the
environment variable name
Ben Souther wrote:
Have you tried setting LD_LIBRARY_PATH as a java option at Tomcat
startup time?
I have tried to export the value (export
LD_LIBRARY_PATH=/path/to/so-file) in both catalina.sh and
/etc/init.d/tomcat4. Is there any other way to do it?
Could I do something like
java -DLD_LIBRARY_
Have you tried setting LD_LIBRARY_PATH as a java option at Tomcat
startup time?
On Wed, 2005-01-26 at 10:00, Andreas Andersson wrote:
> Hi!
>
> My application needs to use a native share library. When running normal
> java program from the commandline it works if I just set LD_LIBRARY_PATH
> t
Hi!
My application needs to use a native share library. When running normal
java program from the commandline it works if I just set LD_LIBRARY_PATH
to point to the .so-file. But since tomcat runs as suid (I guess thats
why) LD_LIBRARY_PATH is ignored. What can I do instead? Is there any way
I