1754020 Members
7334 Online
108811 Solutions
New Discussion юеВ

Java 1.5 32/64 bit

 
SOLVED
Go to solution
Mauro Livi
Valued Contributor

Java 1.5 32/64 bit

Hi,
I see that Java 1.5 JDK/JRE was installed on our server (rp7440). However, how can I tell if this is the 32bit or 64bit version? When I run java -version, it doesn't tell me this (see below). We are running HPUX 11.11
Any help would be appreciated.
Thanks
Mauro


# ./java -version
java version "1.5.0.04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.04-_27_jul_2006_10
_52)
17 REPLIES 17
Raj D.
Honored Contributor

Re: Java 1.5 32/64 bit

Mauro,
If it is installed correctly ,that means it is installed the correct version.
You need to check the java directory for 32 and 64 bit libraries if they are present.

Also check the system version 32 bit or 64 bit.

# getconf KERNEL_BITS


Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Mauro Livi
Valued Contributor

Re: Java 1.5 32/64 bit

Hi Raj
So I would assume that this means that it is 64 bits. Heard that Oracle wants the 32 bit version installed...not sure why.

# getconf KERNEL_BITS
64
Mauro Livi
Valued Contributor

Re: Java 1.5 32/64 bit

Raj,
Actually I take that back getconf will only tell me the configuration values...so how do I know that the java 1.5 version installed (not by me)...is the 32/64 flavor??? I'm confused.
Thanks
Mauro
James R. Ferguson
Acclaimed Contributor

Re: Java 1.5 32/64 bit

Hi Mauro:

Do:

# file /opt/java1.5/bin/java

If you don't see notations like "ELF-64" or "LP64" then the binary is 32-bit.

Regards!

...JRF...
Mauro Livi
Valued Contributor

Re: Java 1.5 32/64 bit

Hmmm...
# file /opt/java1.5/bin/java
/opt/java1.5/bin/java: PA-RISC2.0 executable dynamically linked -not stripped

So where does this leave me? Sorry if I'm being "thick".
James R. Ferguson
Acclaimed Contributor
Solution

Re: Java 1.5 32/64 bit

Hi (again):

> PA-RISC2.0 executable dynamically linked -not stripped

> So where does this leave me? Sorry if I'm being "thick".

This is a 32-bit binary.

# file a*.out
a32.out: PA-RISC2.0 shared executable dynamically linked -not stripped
a64.out: ELF-64 executable object file - PA-RISC 2.0 (LP64)

Regards!

...JRF...
Mauro Livi
Valued Contributor

Re: Java 1.5 32/64 bit

Thanks JRF,
So by virtue of that "PA-RISC2.0 executable dynamically linked -not stripped" message one can conclude that the executable is 32 bit???
The server is configured in 64 bit mode, and I guess I was hoping to see something like "java 1.5 version xxxx 32/64 bit..." or something like that.

Thanks again
Mauro
James R. Ferguson
Acclaimed Contributor

Re: Java 1.5 32/64 bit

Hi (again):

> So by virtue of that "PA-RISC2.0 executable dynamically linked -not stripped" message one can conclude that the executable is 32 bit???

Yes. And, of course, a 64-bit kernel runs 32-bit binaries just fine. For 32-bit binaries the data, stack and text fences are the 'maxdsiz', 'maxssiz' and 'maxtsz' but for 64-bit executables they are suffixed with '_64bit' and are of course very much larger in limit.

Regards!

...JRF...

Mauro Livi
Valued Contributor

Re: Java 1.5 32/64 bit

JRF,
Thanks so much for your help. Exactly the answer I needed.
Mauro