Operating System - HP-UX
1827798 Members
2276 Online
109969 Solutions
New Discussion

can I run both 32bits and 64bits Java on the same server

 
SOLVED
Go to solution
shaobinxu
Occasional Advisor

can I run both 32bits and 64bits Java on the same server

I have a Hp-ux server, one BEA weblogic server running on 32bits JVM with PA_RISC2.0; now I try to start another java application on this server, but want to use PA_RISC2.0W (64bits) to improve performance, is there any problems? or any errors in my description? As I know I should
ln -s /opt/java1.4/jre/lib/PA_RISC2.0W/*.sl /usr/lib/pa20_64
and
ln -s /opt/java1.4/jre/lib/PA_RISC2.0W/hotspot/*.sl /usr/lib/pa20_64
, but some *.sl files in PA_RISC2.0W and PA_RISC2.0 are the same? so, anyone can give some advice?
7 REPLIES 7
Arunvijai_4
Honored Contributor

Re: can I run both 32bits and 64bits Java on the same server

Hi,

Yes, You can run both 32 bit and 64 bit JVM on same machine without any issues. You use java from /opt/java1.4/bin/PA_RISC2.0W/java which is ELF-64 executable object file - PA-RISC 2.0 (LP64)


-Arun

"A ship in the harbor is safe, but that is not what ships are built for"
shaobinxu
Occasional Advisor

Re: can I run both 32bits and 64bits Java on the same server

But when I try to run java under PA_RISC2.0W, an error occured as following:
$./java -version
/usr/lib/pa20_64/dld.sl: Unable to find library 'libjvm.sl'.
Killed
$pwd
/opt/java1.4/jre/bin/PA_RISC2.0W

does that mean I should do some soft link of libjvm.sl, so comes the problem, PARISC_2.0 and PARISC_2.0W both have libjvm.sl, how to solve this problem? thanks for your reply
Arunvijai_4
Honored Contributor

Re: can I run both 32bits and 64bits Java on the same server

Hi,

You can link /opt/java1.4//jre/lib/PA_RISC2.0W/server/libjvm.sl
to /usr/lib/pa20_64

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
shaobinxu
Occasional Advisor

Re: can I run both 32bits and 64bits Java on the same server

You can link /opt/java1.4//jre/lib/PA_RISC2.0W/server/libjvm.sl
to /usr/lib/pa20_64

Hi, Arun,
Will this link from 64bits have any impact on 32bits JVM running? Have you tried this before? Thanks.
Arunvijai_4
Honored Contributor
Solution

Re: can I run both 32bits and 64bits Java on the same server

Hi,

64 bit JVM will run as a separate process. So, I dont think it will affect 32 bit JVM.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
shaobinxu
Occasional Advisor

Re: can I run both 32bits and 64bits Java on the same server

understand, its soft link only, not overwrite; I made such a mistake.
Thank you so much.
shaobinxu
Occasional Advisor

Re: can I run both 32bits and 64bits Java on the same server

Thanks Arun!