<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic System.loadLibrary() Unsatisfied Link Error loading 64bit JNI Shared lib in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/system-loadlibrary-unsatisfied-link-error-loading-64bit-jni/m-p/4639381#M676481</link>
    <description>&lt;!--!*#--&gt;Cannot get a 64bit shared lib to load using Java6 System.loadLibrary().&lt;BR /&gt;&lt;BR /&gt;I've broken this out into a simple testcase, and still cannot get this to load my library correctly.&lt;BR /&gt;&lt;BR /&gt;public static void main(String argv[])throws Exception{&lt;BR /&gt;        java.util.Properties props = System.getProperties();&lt;BR /&gt;        System.out.println("Lib path = "+props.getProperty("java.library.path"));&lt;BR /&gt;                try{&lt;BR /&gt;                        System.out.println("Call System.loadLibrary(" + argv[0] + ")");&lt;BR /&gt;                        System.loadLibrary(argv[0]);&lt;BR /&gt;                }&lt;BR /&gt;                catch (UnsatisfiedLinkError e){&lt;BR /&gt;                        System.out.println("EXCEPTION!");&lt;BR /&gt;                        System.out.println("   " + e.getCause());&lt;BR /&gt;                        System.out.println("   " + e.getMessage());&lt;BR /&gt;return;&lt;BR /&gt;                }&lt;BR /&gt;&lt;BR /&gt;Results:&lt;BR /&gt;/opt/java6/bin/java -d64 TcLoadLib samplelib64&lt;BR /&gt;Lib path = /opt/java6/jre/lib/IA64W:/opt/java6/jre/lib/IA64W/server:/opt/java6/jre/../lib/IA64W:/tmp/libpath:/tmp/libpath/:/usr/lib&lt;BR /&gt;Call System.loadLibrary(samplelib64)&lt;BR /&gt;EXCEPTION!&lt;BR /&gt;   null&lt;BR /&gt;   no samplelib in java.library.path&lt;BR /&gt;&lt;BR /&gt;I've verified that the libsamplelib64.sl is in java.library.path (See output from cmd above)  and is executable, and that it is a ELF-64 shared obj. (Also confirmed that the name is correct)&lt;BR /&gt;&amp;gt;file libsamplelib64.sl&lt;BR /&gt;libsamplelib64.sl:       ELF-64 shared object file - IA64&lt;BR /&gt;&lt;BR /&gt;As you can see I am testing with java6 in 64bit mode, and the java.library.path that is output during runtime is correct.&lt;BR /&gt;&lt;BR /&gt;HP VERSION INFO : HP-UX  B.11.31 U ia64 1169810284 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;I also was able to load this sharedlib outside of Java sucessfully (ldload), so I believe the library is built correctly.&lt;BR /&gt;&lt;BR /&gt;Completely stumped, and I've begun looking for bugs/defects in HP or the JVM, but so far have not been able to isolate anything related here.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 28 May 2010 18:27:33 GMT</pubDate>
    <dc:creator>endobikr</dc:creator>
    <dc:date>2010-05-28T18:27:33Z</dc:date>
    <item>
      <title>System.loadLibrary() Unsatisfied Link Error loading 64bit JNI Shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-loadlibrary-unsatisfied-link-error-loading-64bit-jni/m-p/4639381#M676481</link>
      <description>&lt;!--!*#--&gt;Cannot get a 64bit shared lib to load using Java6 System.loadLibrary().&lt;BR /&gt;&lt;BR /&gt;I've broken this out into a simple testcase, and still cannot get this to load my library correctly.&lt;BR /&gt;&lt;BR /&gt;public static void main(String argv[])throws Exception{&lt;BR /&gt;        java.util.Properties props = System.getProperties();&lt;BR /&gt;        System.out.println("Lib path = "+props.getProperty("java.library.path"));&lt;BR /&gt;                try{&lt;BR /&gt;                        System.out.println("Call System.loadLibrary(" + argv[0] + ")");&lt;BR /&gt;                        System.loadLibrary(argv[0]);&lt;BR /&gt;                }&lt;BR /&gt;                catch (UnsatisfiedLinkError e){&lt;BR /&gt;                        System.out.println("EXCEPTION!");&lt;BR /&gt;                        System.out.println("   " + e.getCause());&lt;BR /&gt;                        System.out.println("   " + e.getMessage());&lt;BR /&gt;return;&lt;BR /&gt;                }&lt;BR /&gt;&lt;BR /&gt;Results:&lt;BR /&gt;/opt/java6/bin/java -d64 TcLoadLib samplelib64&lt;BR /&gt;Lib path = /opt/java6/jre/lib/IA64W:/opt/java6/jre/lib/IA64W/server:/opt/java6/jre/../lib/IA64W:/tmp/libpath:/tmp/libpath/:/usr/lib&lt;BR /&gt;Call System.loadLibrary(samplelib64)&lt;BR /&gt;EXCEPTION!&lt;BR /&gt;   null&lt;BR /&gt;   no samplelib in java.library.path&lt;BR /&gt;&lt;BR /&gt;I've verified that the libsamplelib64.sl is in java.library.path (See output from cmd above)  and is executable, and that it is a ELF-64 shared obj. (Also confirmed that the name is correct)&lt;BR /&gt;&amp;gt;file libsamplelib64.sl&lt;BR /&gt;libsamplelib64.sl:       ELF-64 shared object file - IA64&lt;BR /&gt;&lt;BR /&gt;As you can see I am testing with java6 in 64bit mode, and the java.library.path that is output during runtime is correct.&lt;BR /&gt;&lt;BR /&gt;HP VERSION INFO : HP-UX  B.11.31 U ia64 1169810284 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;I also was able to load this sharedlib outside of Java sucessfully (ldload), so I believe the library is built correctly.&lt;BR /&gt;&lt;BR /&gt;Completely stumped, and I've begun looking for bugs/defects in HP or the JVM, but so far have not been able to isolate anything related here.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 May 2010 18:27:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-loadlibrary-unsatisfied-link-error-loading-64bit-jni/m-p/4639381#M676481</guid>
      <dc:creator>endobikr</dc:creator>
      <dc:date>2010-05-28T18:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: System.loadLibrary() Unsatisfied Link Error loading 64bit JNI Shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-loadlibrary-unsatisfied-link-error-loading-64bit-jni/m-p/4639382#M676482</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;What is the SHLIB_PATH set to when executing this program?&lt;BR /&gt;&lt;BR /&gt;I would consider the possibility of updating Java from &lt;A href="http://www.hp.com/go/java" target="_blank"&gt;http://www.hp.com/go/java&lt;/A&gt; just for the sake of being current.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 28 May 2010 18:56:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-loadlibrary-unsatisfied-link-error-loading-64bit-jni/m-p/4639382#M676482</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-05-28T18:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: System.loadLibrary() Unsatisfied Link Error loading 64bit JNI Shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-loadlibrary-unsatisfied-link-error-loading-64bit-jni/m-p/4639383#M676483</link>
      <description>&amp;gt;libsamplelib64.sl&lt;BR /&gt;&lt;BR /&gt;On Integrity, shlib suffixes for java must be .so.</description>
      <pubDate>Fri, 28 May 2010 21:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-loadlibrary-unsatisfied-link-error-loading-64bit-jni/m-p/4639383#M676483</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-05-28T21:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: System.loadLibrary() Unsatisfied Link Error loading 64bit JNI Shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-loadlibrary-unsatisfied-link-error-loading-64bit-jni/m-p/4639384#M676484</link>
      <description>Thanks for taking a look.  Dennis, looks like that was it. I had looked at the extensions early on, but had seen that the HP-UX Linke and Libraries User's Guide said that &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90968/linkerdifferencesiapa.htm" target="_blank"&gt;http://docs.hp.com/en/B2355-90968/linkerdifferencesiapa.htm&lt;/A&gt;&lt;BR /&gt;"For compatibility, the IPF linker also supports the .sl suffix. " &lt;BR /&gt;&lt;BR /&gt;Retested with .so this morning and that appears to work.  &lt;BR /&gt;&lt;BR /&gt;Any ideas why the compatability mode may/may not work for *.sl naming convention??&lt;BR /&gt;&lt;BR /&gt;Thanks again!</description>
      <pubDate>Tue, 01 Jun 2010 13:11:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-loadlibrary-unsatisfied-link-error-loading-64bit-jni/m-p/4639384#M676484</guid>
      <dc:creator>endobikr</dc:creator>
      <dc:date>2010-06-01T13:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: System.loadLibrary() Unsatisfied Link Error loading 64bit JNI Shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-loadlibrary-unsatisfied-link-error-loading-64bit-jni/m-p/4639385#M676485</link>
      <description>&amp;gt;Any ideas why the compatibility mode may/may not work for *.sl naming convention?&lt;BR /&gt;&lt;BR /&gt;Because you are looking at the linker documentation vs the java documentation.  It too surprised me when my example program didn't work and I had to change my script.  Perhaps it needs this to make sure that you can still run PA java on Integrity and keep the JNIs separate?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Retested with .so this morning and that appears to work.&lt;BR /&gt;&lt;BR /&gt;If you are happy with the answers you were given, please read the following on how to assign points:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;</description>
      <pubDate>Tue, 01 Jun 2010 17:26:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-loadlibrary-unsatisfied-link-error-loading-64bit-jni/m-p/4639385#M676485</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-06-01T17:26:03Z</dc:date>
    </item>
  </channel>
</rss>

