Operating System - HP-UX
1834748 Members
2817 Online
110070 Solutions
New Discussion

Re: Help please. Shared library can not be found after I applied aC++ compiler

 
Jie_3
Occasional Contributor

Help please. Shared library can not be found after I applied aC++ compiler

Hi,

My Java code worked well before I applied the aCC compiler patch PHSS_24627. However, after I applied the patch, my Java code, which calls another Native Method (C++ function) , failed. The native library could not be loaded at the run time even though the path of the file is defined in the SHLIB_PATH. The error message I got is as follows:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /export/data01/vantive/jdeng/rel9/vapi/dist/vanapi/vanjavi/libvanjavi.sl: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java, Compiled Code)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java, Compiled Code)
at java.lang.Runtime.loadLibrary0(Runtime.java, Compiled Code)
at java.lang.System.getProperty(System.java, Compiled Code)
at com.vantive.vanjavi.VanJavi.(VanJavi.java:467)
at com.vantive.vanjavi.VanConnection.(VanConnection.java:722)
at GetConnectionInfo.main(GetConnectionInfo.java:5)

Is there anybody knows how to fix it?

Thanks,
JD

JD
1 REPLY 1
Alex Glennie
Honored Contributor

Re: Help please. Shared library can not be found after I applied aC++ compiler

Have you installed the dependacies ? ie

PHSS_22868
s700_800 11.X HP aC++ -AA header files (aCC A.03.30)

see PHSS_24627's special install instuctions/dependancy info ?