<?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 Re: Wasting disk space with PA_RISC1.1 code for Java2 1.3 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750670#M722141</link>
    <description>Matthias&lt;BR /&gt;&lt;BR /&gt;OK.  Other than the suggestions above I have no idea. But as an experiment you could try copying files like libjava.sl back into the original directory structure &amp;amp; seeing if this works.&lt;BR /&gt;&lt;BR /&gt;Otherwise I would just forget about saving the disk space.  :-(&lt;BR /&gt;&lt;BR /&gt;Tim</description>
    <pubDate>Tue, 25 Jun 2002 08:40:18 GMT</pubDate>
    <dc:creator>Tim D Fulford</dc:creator>
    <dc:date>2002-06-25T08:40:18Z</dc:date>
    <item>
      <title>Wasting disk space with PA_RISC1.1 code for Java2 1.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750666#M722137</link>
      <description>The Java2 Software Development Kit 1.3.1.05 bundle (part no. B9788AA)&lt;BR /&gt;contains each binary as a PA_RISC1.1 and PA_RISC2.0 version,&lt;BR /&gt;subdivided into different filesets. For example the dynamic library&lt;BR /&gt;'libjava.sl' can be found in the filesets 'Jre.JRE-PA11' and&lt;BR /&gt;'Jre.JRE-PA20'. Because the PA_RISC1.1 filesets take a lot of disk&lt;BR /&gt;space (22.6 Mbytes) and I'm using a PA_RISC2.0 machine I tried to&lt;BR /&gt;remove the unnecessary filesets with the PA_RISC1.1 code, but this&lt;BR /&gt;wasn't successful.&lt;BR /&gt;&lt;BR /&gt;$ /opt/java1.3/bin/java -version&lt;BR /&gt;java version "1.3.1.05"&lt;BR /&gt;Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.05-020425-12:07)&lt;BR /&gt;Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.05-JPSE_1.3.1.05_20020425 PA2.0, mixed mode)&lt;BR /&gt;&lt;BR /&gt;# -&amp;gt; O.k. java works and the PA2.0 version is used.&lt;BR /&gt;# I'm "removing" the PA_RISC1.1 libraries with the following command:&lt;BR /&gt;&lt;BR /&gt;$ mv /opt/java1.3/jre/lib/PA_RISC /opt/java1.3/jre/lib/PA_RISC-obsolete&lt;BR /&gt;&lt;BR /&gt;# Now java doesn't work any more:&lt;BR /&gt;&lt;BR /&gt;$ /opt/java1.3/bin/java -version&lt;BR /&gt;Error: could not find libjava.sl&lt;BR /&gt;Error: could not find Java 2 Runtime Environment.&lt;BR /&gt;&lt;BR /&gt;# But the PA_RISC2.0 'libjava.sl' still exists:&lt;BR /&gt;-r-xr-xr-x 1 bin bin 290816 Apr 25 22:40 /opt/java1.3/jre/lib/PA_RISC2.0/libjava.sl&lt;BR /&gt;&lt;BR /&gt;# I didn't understand this, so I called the '.java_wrapper' ksh(1) script&lt;BR /&gt;# with an debugging option:&lt;BR /&gt;&lt;BR /&gt;$ /bin/ksh -xp /opt/java1.3/bin/java -version&lt;BR /&gt;&lt;BR /&gt;(... output is shorted)&lt;BR /&gt;+ vmproc=PA_RISC2.0&lt;BR /&gt;+ SHLIB_PATH=/opt/java1.3/bin/../jre/lib/PA_RISC2.0/native_threads:    /opt/java1.3/bin/../jre/lib/PA_RISC2.0/server:    /opt/java1.3/bin/../jre/lib/PA_RISC2.0:&lt;BR /&gt;+ export SHLIB_PATH&lt;BR /&gt;+ XFILESEARCHPATH=/opt/java1.3/bin/../jre/lib/locale/%L/%T/%N%S:&lt;BR /&gt;+ export XFILESEARCHPATH&lt;BR /&gt;+ prog=/opt/java1.3/bin/../bin/PA_RISC2.0/native_threads/java&lt;BR /&gt;+ [ -x /opt/java1.3/bin/../bin/PA_RISC2.0/native_threads/java ]&lt;BR /&gt;+ exec /opt/java1.3/bin/../bin/PA_RISC2.0/native_threads/java -version&lt;BR /&gt;Error: could not find libjava.sl&lt;BR /&gt;Error: could not find Java 2 Runtime Environment.&lt;BR /&gt;&lt;BR /&gt;I still don't understand this behavior. The wrapper script&lt;BR /&gt;/opt/java1.3/bin/.java_wrapper executes the PA_RISC2.0 'java' program&lt;BR /&gt;and the environment variable SHLIB_PATH contains exactly the directory&lt;BR /&gt;/opt/java1.3/bin/../jre/lib/PA_RISC2.0 where the PA_RISC2.0 library&lt;BR /&gt;'libjava.sl' resides.&lt;BR /&gt;&lt;BR /&gt;Can anyone explain me this: After installing the complete SDK java&lt;BR /&gt;uses PA_RISC2.0/libjava.sl, which I tested by looking at the access&lt;BR /&gt;time ('ls -lu ...'). But when I'm removing PA_RISC/libjava.sl,&lt;BR /&gt;i.e. the PA11 version, java doesn't work and can't find&lt;BR /&gt;PA_RISC2.0/libjava.sl any more.&lt;BR /&gt;&lt;BR /&gt;Regards, Matthias&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jun 2002 10:16:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750666#M722137</guid>
      <dc:creator>Matthias Habl</dc:creator>
      <dc:date>2002-06-24T10:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Wasting disk space with PA_RISC1.1 code for Java2 1.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750667#M722138</link>
      <description>This is indeed very strange!&lt;BR /&gt;&lt;BR /&gt;Can you post the output of 'chatr java' and 'chatr libjava.sl' for the two PA_RISC2.0 binaries?&lt;BR /&gt;&lt;BR /&gt;From this we can ate least figure out what libraries both are attempting to load...&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 24 Jun 2002 10:26:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750667#M722138</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2002-06-24T10:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Wasting disk space with PA_RISC1.1 code for Java2 1.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750668#M722139</link>
      <description>Make sure that the filkes in question are not hard links to each other.  Sometimes only one binary is shipped but hard linked to a different name e.g. compress&lt;BR /&gt;&lt;BR /&gt;ls -li /usr/bin/*compress&lt;BR /&gt;  3480 -r-xr-xr-x   3 bin        bin          36864 Sep 29  1999 /usr/bin/compress&lt;BR /&gt;  3480 -r-xr-xr-x   3 bin        bin          36864 Sep 29  1999 /usr/bin/uncompress&lt;BR /&gt;&lt;BR /&gt;the i shows the i-node.&lt;BR /&gt;&lt;BR /&gt;Just a thought&lt;BR /&gt;&lt;BR /&gt;Tim&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jun 2002 11:55:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750668#M722139</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2002-06-24T11:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Wasting disk space with PA_RISC1.1 code for Java2 1.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750669#M722140</link>
      <description />
      <pubDate>Tue, 25 Jun 2002 07:23:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750669#M722140</guid>
      <dc:creator>Matthias Habl</dc:creator>
      <dc:date>2002-06-25T07:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Wasting disk space with PA_RISC1.1 code for Java2 1.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750670#M722141</link>
      <description>Matthias&lt;BR /&gt;&lt;BR /&gt;OK.  Other than the suggestions above I have no idea. But as an experiment you could try copying files like libjava.sl back into the original directory structure &amp;amp; seeing if this works.&lt;BR /&gt;&lt;BR /&gt;Otherwise I would just forget about saving the disk space.  :-(&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 25 Jun 2002 08:40:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750670#M722141</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2002-06-25T08:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wasting disk space with PA_RISC1.1 code for Java2 1.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750671#M722142</link>
      <description>Matthias,&lt;BR /&gt;&lt;BR /&gt;The odd thing here is that the chatr indicates that libjava.sl isn't loaded at run-time, which means it must be explicitly loaded by a call to dlopen somewhere in the source code - we know this is the case cos the error message you get isn't the usual one when a shared library can't be loaded (this usually mentions dld).&lt;BR /&gt;&lt;BR /&gt;I tried the following :&lt;BR /&gt;&lt;BR /&gt;strings /opt/java1.3/jre/bin/PA_RISC2.0/native_threads/java | grep libjava&lt;BR /&gt;&lt;BR /&gt;and it returned the following:&lt;BR /&gt;&lt;BR /&gt;%s/lib/%s/libjava.sl&lt;BR /&gt;%s/jre/lib/%s/libjava.sl&lt;BR /&gt;&lt;BR /&gt;Which seems to bear this out... one can only assume that something in the source code is trying to open the wrong shared library - I'm not sure how to take this further though... &lt;BR /&gt;&lt;BR /&gt;Can tusc trace PARISC2.0 binaries? if so, perhaps you should download and install that - maybe then you can get a handle on whats going on.&lt;BR /&gt;&lt;BR /&gt;Sorry I can't help more&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Tue, 25 Jun 2002 09:06:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750671#M722142</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2002-06-25T09:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Wasting disk space with PA_RISC1.1 code for Java2 1.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750672#M722143</link>
      <description>With your help I found an explanation. Using tusc(1) (no problem to&lt;BR /&gt;trace PA_RISC2.0 binaries) it revealed, that 'java' is indeed reading the&lt;BR /&gt;libraries itself, as Duncan has suspected:&lt;BR /&gt;&lt;BR /&gt;stat("/opt/java1.3/bin/../jre/lib/PA_RISC2.0/libjava.sl", 0x7f7f2868) = 0&lt;BR /&gt;open("/opt/java1.3/bin/../jre/lib/PA_RISC2.0/libjava.sl", O_RDONLY, 03) = 3&lt;BR /&gt;fstat(3, 0x7f7f2930) ..................................... = 0&lt;BR /&gt;read(3, "0214010e0512@ \0\0\0\0\0\0\0\0\0".., 128) ....... = 128&lt;BR /&gt;lseek(3, 128, SEEK_SET) .................................. = 128&lt;BR /&gt;read(3, "10\0\004\0\0\0( \002beec\0\010\0".., 48) ........ = 48&lt;BR /&gt;read(3, "80\0\0\v\0\0\004\0\0\0\0", 12) .................. = 12&lt;BR /&gt;lseek(3, 90112, SEEK_SET) ................................ = 90112&lt;BR /&gt;read(3, "058cy 10\0\001e0\0\012fc\0\0\005".., 112) ....... = 112&lt;BR /&gt;mmap(NULL, 180224, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 3, 0x16000) ERR#12 ENOMEM&lt;BR /&gt;close(3) ................................................. = 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The problem - and I think this is POOR PROGRAMMING of the java binary -&lt;BR /&gt;is, that the existence of the PA_RISC1.1 libjava.sl is used for the&lt;BR /&gt;decision whether the Java2 environment is installed or not. The same&lt;BR /&gt;problem appears in the case of libjvm.sl. Here is the protocol:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ mv -i /opt/java1.3/jre/lib/PA_RISC /opt/java1.3/jre/lib/PA_RISC-obsolete&lt;BR /&gt;$ java -version&lt;BR /&gt;Error: could not find libjava.sl&lt;BR /&gt;Error: could not find Java 2 Runtime Environment.&lt;BR /&gt;&lt;BR /&gt;### I'm making a variation of Tim's proposal:&lt;BR /&gt;&lt;BR /&gt;$ mkdir /opt/java1.3/jre/lib/PA_RISC&lt;BR /&gt;$ cp /dev/null /opt/java1.3/jre/lib/PA_RISC/libjava.sl&lt;BR /&gt;&lt;BR /&gt;$ java -version&lt;BR /&gt;Error: could not find a JVM.&lt;BR /&gt;&lt;BR /&gt;### Ok, this was somewhat better. But now:&lt;BR /&gt;&lt;BR /&gt;$ /opt/java1.3/jre/lib/PA_RISC&lt;BR /&gt;$ mkdir server&lt;BR /&gt;$ cp /dev/null server/libjvm.sl&lt;BR /&gt;&lt;BR /&gt;### And so it works again:&lt;BR /&gt;&lt;BR /&gt;$ java -version&lt;BR /&gt;java version "1.3.1.05"&lt;BR /&gt;Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.05-020425-12:07)&lt;BR /&gt;Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.05-JPSE_1.3.1.05_20020425 PA2.0, mixed mode)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you very much, I learnt some new powerful commands (chatr,&lt;BR /&gt;strings, especially tusc).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Matthias&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jun 2002 09:17:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750672#M722143</guid>
      <dc:creator>Matthias Habl</dc:creator>
      <dc:date>2002-06-26T09:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Wasting disk space with PA_RISC1.1 code for Java2 1.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750673#M722144</link>
      <description>Matthias,&lt;BR /&gt;&lt;BR /&gt;Glad this was useful... and a big thankyou to you, cos it looks like your points just crowned me!&lt;BR /&gt;&lt;BR /&gt;I agree - v. poor programming - I wonder whos responsible for this fragment - HP or Sun?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Wed, 26 Jun 2002 14:00:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wasting-disk-space-with-pa-risc1-1-code-for-java2-1-3/m-p/2750673#M722144</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2002-06-26T14:00:31Z</dc:date>
    </item>
  </channel>
</rss>

