1820014 Members
3567 Online
109608 Solutions
New Discussion юеВ

Re: 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
Dennis Handly
Acclaimed Contributor

Re: Java 1.5 32/64 bit

>how can I tell if this is the 32bit or 64bit version?

You don't need to tell, you should get both. Use -d64 for 64 bit.

>So where does this leave me?

The java driver is usually PA32. Then it execs the correct bitness and architecture.
Mauro Livi
Valued Contributor

Re: Java 1.5 32/64 bit

I think I was OK until that last answer :) (sorry Dennis). JRF confirmed that my java 1.5 is 32 bit. So what you're saying is that my java driver is 32 bit, but it CAN execute 64 bit??
So is there only ONE version of each JDK/JRE java and it executes BOTH 32/64??? Reason I ask because in the past I've seen different versions available for 32/64 and I want to be sure I have the right one.
For some reason Oracle Financials likes 32 bit.
Again, sorry if I seem slow at grasping this one.

Thanks
Mauro
Dennis Handly
Acclaimed Contributor

Re: Java 1.5 32/64 bit

>JRF confirmed that my java 1.5 is 32 bit.

No, JRF was fooled by the java driver. :-)

So what you're saying is that my java driver is 32 bit, but it CAN execute 64 bit?

Yes and on Integrity is is PA and it will exec either the PA or Integrity java.

>So is there only ONE version of each JDK/JRE java and it executes BOTH 32/64?

Yes, depending on the command line options.

>in the past I've seen different versions available for 32/64

Perhaps but now they come in one bundle.
Mauro Livi
Valued Contributor

Re: Java 1.5 32/64 bit

You guys are STUDS!!!!
Just as long as my 1.5 can run the recommended flavor that Oracle likes, I'm happy.
Thanks again
Mauro
James R. Ferguson
Acclaimed Contributor

Re: Java 1.5 32/64 bit

Hi (again):

> Dennis: No, JRF was fooled by the java driver. :-) So what you're saying is that my java driver is 32 bit, but it CAN execute 64 bit? Yes and on Integrity is is PA and it will exec either the PA or Integrity java.

Wow! Thanks Dennis.

Regards!

...JRF...
Mauro Livi
Valued Contributor

Re: Java 1.5 32/64 bit

I know I'm going to beat a dead horse...but here it goes.
As I previously said, my configuration on the server is set for 64 IE:

# getconf KERNEL_BITS
64

So when the DBA who points Oracle Apps to Java 1.5, is the java going to be 32 or 64??? If it was installed in our 64 bit system, does it depend on HOW it was installed (ie d64/d32)? Can I check that???

Mauro Livi
Valued Contributor

Re: Java 1.5 32/64 bit

Disregard the last question. Everything worked...Dennis was right and both are packaged together.
Thanks again
Mauro
Mauro Livi
Valued Contributor

Re: Java 1.5 32/64 bit

Closing Thread