ld.so.1: /usr/java1.2.1/bin/../bin/sparc/native_threads/java: fatal: libhpi
Hi
i am calling a java program from a shell script. While i the java program runs successfully when run from command prompt, it does not run when triggerred by another program. The gid runtime is also different, which is how it is required. i get the following error when run with the different gid.
"ld.so.1: /usr/java1.2.1/bin/../bin/sparc/native_threads/java: fatal: libhpi.so: open failed: No such file or directory"
The environment where this program is run is java1.2.1 in Solaris 7.
i have also tried by by including the .so path inLD_LIBRARY_PATH. This does not solve the problem.
i have noticed a few related topics and may be this is an old issue but i am not getting any solution yet.
thanks to all your help in advance
shiv
[799 byte] By [
sivabada] at [2007-9-26 9:49:33]

Thanks jschell.
i had to copy the files when the script calling the java program is executed as part of a triggering process run with a different euid/gid.
When executed from command prompt, the script ( and the program) work fine. This probably has something to do with the security issues as can be seen under the security section of the ld.so.1 manual page.
Thanks for pointing out that it is something to do with the environment. i'm wondering if i should copy the java lib files too to the default /usr/lib directory, so the libs are avaiable during such a runtime. Might give a try!
1. Were using Classic Build VM earlier.
2. Not sure if it has to do anything with the application not working as expected. Downloaded and installed java1.2.2_07 production build under java1.2
3. Found it is important to install J2SE ( or link) under /usr/java1.2. This path is where the runtime engine seems to look for the runtime files/libraries.
Now the application works as expected.
thanks to all contributions!