<?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 JNI and 64bit in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/jni-and-64bit/m-p/3977230#M95468</link>
    <description>Hi&lt;BR /&gt;  I am working on JNI with IA64 HP_UX 11.23 machine. I had my libraries *.so compile and linked successfully but when i try to run, it actually throw &lt;BR /&gt;"Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/adm/jni/libSharedLib.so: a specified handle or index is not valid.&lt;BR /&gt;&lt;BR /&gt;I did a print java.library.path before the system.loadlibrary is called and was printed successful. Upon loading the library, it printed the above error.&lt;BR /&gt;&lt;BR /&gt;i compiled with the following cc and linker&lt;BR /&gt;&lt;BR /&gt;cc -Ae +DD64 +u4 -z -c -D_HPUX -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE_EXTENDED -D_PTHREADS_DRAFT4 -DPRODUCTION  -I/opt/java1.4/include -I/opt/java1.4/include/hp-ux -I. SharedLib.c&lt;BR /&gt;&lt;BR /&gt;ld -b -o /home/adm/jni/libSharedLib.so SharedLib.o&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Additional information:&lt;BR /&gt;When i removed +DD64 from the compile statement, the system.loadlibrary("SharedLib") can be loaded successfully (No error thrown). Immediately after this library called i did a println but the error is still thrown after the println call.&lt;BR /&gt;&lt;BR /&gt;Any help will be greatly appreciated.&lt;BR /&gt;</description>
    <pubDate>Mon, 09 Apr 2007 03:30:15 GMT</pubDate>
    <dc:creator>&lt;&lt;jdditrc&gt;&gt;</dc:creator>
    <dc:date>2007-04-09T03:30:15Z</dc:date>
    <item>
      <title>JNI and 64bit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/jni-and-64bit/m-p/3977230#M95468</link>
      <description>Hi&lt;BR /&gt;  I am working on JNI with IA64 HP_UX 11.23 machine. I had my libraries *.so compile and linked successfully but when i try to run, it actually throw &lt;BR /&gt;"Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/adm/jni/libSharedLib.so: a specified handle or index is not valid.&lt;BR /&gt;&lt;BR /&gt;I did a print java.library.path before the system.loadlibrary is called and was printed successful. Upon loading the library, it printed the above error.&lt;BR /&gt;&lt;BR /&gt;i compiled with the following cc and linker&lt;BR /&gt;&lt;BR /&gt;cc -Ae +DD64 +u4 -z -c -D_HPUX -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE_EXTENDED -D_PTHREADS_DRAFT4 -DPRODUCTION  -I/opt/java1.4/include -I/opt/java1.4/include/hp-ux -I. SharedLib.c&lt;BR /&gt;&lt;BR /&gt;ld -b -o /home/adm/jni/libSharedLib.so SharedLib.o&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Additional information:&lt;BR /&gt;When i removed +DD64 from the compile statement, the system.loadlibrary("SharedLib") can be loaded successfully (No error thrown). Immediately after this library called i did a println but the error is still thrown after the println call.&lt;BR /&gt;&lt;BR /&gt;Any help will be greatly appreciated.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Apr 2007 03:30:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/jni-and-64bit/m-p/3977230#M95468</guid>
      <dc:creator>&lt;&lt;jdditrc&gt;&gt;</dc:creator>
      <dc:date>2007-04-09T03:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: JNI and 64bit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/jni-and-64bit/m-p/3977231#M95469</link>
      <description>&amp;gt;-D_PTHREADS_DRAFT4&lt;BR /&gt;&lt;BR /&gt;This is no longer supported, remove it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;When i removed +DD64 from the compile statement&lt;BR /&gt;&lt;BR /&gt;It seems you are not invoking the 64 bit java?&lt;BR /&gt;&lt;A href="http://www.hp.com/products1/unix/java/infolibrary/prog_guide/hotspot.html#-d64" target="_blank"&gt;http://www.hp.com/products1/unix/java/infolibrary/prog_guide/hotspot.html#-d64&lt;/A&gt;</description>
      <pubDate>Mon, 09 Apr 2007 04:32:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/jni-and-64bit/m-p/3977231#M95469</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-04-09T04:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: JNI and 64bit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/jni-and-64bit/m-p/3977232#M95470</link>
      <description>btw the java version &lt;BR /&gt;&lt;BR /&gt;java version "1.4.2.04"&lt;BR /&gt;Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.04-040628-18:09)&lt;BR /&gt;Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.04-040628-23:33-IA64N IA64, mixed mode)&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Apr 2007 04:43:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/jni-and-64bit/m-p/3977232#M95470</guid>
      <dc:creator>&lt;&lt;jdditrc&gt;&gt;</dc:creator>
      <dc:date>2007-04-09T04:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: JNI and 64bit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/jni-and-64bit/m-p/3977233#M95471</link>
      <description>Thanks for the help. Problem solved&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Apr 2007 05:43:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/jni-and-64bit/m-p/3977233#M95471</guid>
      <dc:creator>&lt;&lt;jdditrc&gt;&gt;</dc:creator>
      <dc:date>2007-04-09T05:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: JNI and 64bit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/jni-and-64bit/m-p/3977234#M95472</link>
      <description>&amp;gt;Problem solved&lt;BR /&gt;&lt;BR /&gt;3 points is a little small for solving your problem.  ;-)</description>
      <pubDate>Mon, 09 Apr 2007 05:50:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/jni-and-64bit/m-p/3977234#M95472</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-04-09T05:50:40Z</dc:date>
    </item>
  </channel>
</rss>

