Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have successfully compiled the file but now I am getting following errors

export LD_LIBRARY_PATH=/opt/mcr/v717/sys/java/jre/glnxa64/jre/lib/amd64/server/:D_LIBRARY_PATH
./invoke
./invoke: error while loading shared libraries: libjvm.so: cannot open shared object file: No such file or directory
make: *** [run] Error 127

I have checked with library path , still getting this error. please suggest me good solution along with some conceptual information.

run: Prog.class invoke

export LD_LIBRARY_PATH=/opt/mcr/v717/sys/java/jre/glnxa64/jre/lib/amd64/server/:$LD_LIBRARY_PATH
./invoke
share|improve this question
    
is :D_LIBRARY_PATH a typo ? it sould be :$LD_LIBRARY_PATH. do you have libjvm.so in any directory listed in LD_LIBRARY_PATH ? –  Archemar Nov 4 '14 at 8:32
    
yaa it has libjvm.so in the given path of LD_LIBRARY_PATH.But still I am getting above mentioned errors. –  uday singh Nov 4 '14 at 8:35
    
I think you will have to add the path to any of the /etc/ld.so.conf.d/* files and do an ldconfig. –  sree Nov 4 '14 at 8:38
    
Check the output of ldd. If it's a java app then you could also use -Djava.library.path=/path/to/my/dll –  UVV Nov 4 '14 at 8:58
    
Have you seen this thread unix.stackexchange.com/questions/16656/… –  UVV Nov 4 '14 at 8:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.