Operating System - HP-UX
1752299 Members
5363 Online
108786 Solutions
New Discussion юеВ

java 32bit only install on 11v3 IA64

 
Norman Dignard
Regular Advisor

java 32bit only install on 11v3 IA64

HP-UX B.11.31 U ia64
Installed jdk6_16002_pa.depot and jdk6aa_16002_pa.depot with allow_incompatible=true option

#java -version
java version "1.6.0.02"
Java(TM) SE Runtime Environment (build 1.6.0.02-jinteg_26_sep_2008_17_44-b00)
Java HotSpot(TM) Server VM (build 1.6.0.02 jinteg:09.26.08-16:50 PA2.0 (aCC_AP), mixed mode)

#java -pa20 -version
java version "1.6.0.02"
Java(TM) SE Runtime Environment (build 1.6.0.02-jinteg_26_sep_2008_17_44-b00)
Java HotSpot(TM) Server VM (build 1.6.0.02 jinteg:09.26.08-16:50 PA2.0 (aCC_AP), mixed mode)

From what I've read if we don't spec java options -d32 or -d64 the default is to run in a 32-bit environment. This variable has not been defined.

We attempted to upgrade BMC Remedy midtier and had some issues which we put in a support call to our support provider for BMC.
After much ado they are telling me to install 32bit java, which I thought I had since this server's been up and running for a few years. I've send them the details of our java install and they've come back stating:
""From the entries you sent below, you can see that 32/64 bit version of Java has been installed.

Software selections:
Java60JDK,r=1.6.0.02.00,a=HP-UX_B.11.11_32/64,v=HP
Jdk60.JDK60,r=1.6.0.02.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.6.0.02.00,fa=HP-UX_B.11.11_32/64
Jdk60.JDK60-COM,r=1.6.0.02.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.6.0.02.00,fa=HP-UX_B.11.11_32/64
Jdk60.JDK60-DEMO,r=1.6.0.02.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.6.0.02.00,fa=HP-UX_B.11.11_32/64
Jdk60.JDK60-PA20,r=1.6.0.02.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.6.0.02.00,fa=HP-UX_B.11.11_32/64
Jdk60.JDK60-PA20W,r=1.6.0.02.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.6.0.02.00,fa=HP-UX_B.11.11_32/64
+ Jre60.JRE60,r=1.6.0.02.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.6.0.02.00,fa=HP-UX_B.11.11_32/64
Jre60.JRE60-COM,r=1.6.0.02.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.6.0.02.00,fa=HP-UX_B.11.11_32/64
Jre60.JRE60-COM-DOC,r=1.6.0.02.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.6.0.02.00,fa=HP-UX_B.11.11_32/64
+ Jre60.JRE60-PA20,r=1.6.0.02.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.6.0.02.00,fa=HP-UX_B.11.11_32/64
+ Jre60.JRE60-PA20-HS,r=1.6.0.02.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.6.0.02.00,fa=HP-UX_B.11.11_32/64
+ Jre60.JRE60-PA20W,r=1.6.0.02.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.6.0.02.00,fa=HP-UX_B.11.11_32/64
+ Jre60.JRE60-PA20W-HS,r=1.6.0.02.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.6.0.02.00,fa=HP-UX_B.11.11_32/64

The engineers at BMC have seen these entries and stated the following:

тАЬNope, that doesn't work. We've seen other customers try that and they have
run into the same kind of problems you are seeing. The Java wants to compile
in 64 bit. This doesn't work for our code and libraries. The Java installed needs to be the 32 bit version.""

So what do I need? Is it just a matter of running
swremove Jdk60.JDK60-PA20W Jre60.JRE60-PA20W Jre60.JRE60-PA20W-HS ???

Do I need some other depot? If so what depot?

Very frustrated.




18 REPLIES 18
Steven E. Protter
Exalted Contributor

Re: java 32bit only install on 11v3 IA64

Shalom,

The supported depots on HP-UX are at http://www.hp.com/go/java

They include 32 bit and 64 bit binaries and libraries. They support both 32 bit and 64 bit applications.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dennis Handly
Acclaimed Contributor

Re: java 32bit only install on 11v3 IA64

>Installed jdk6_16002_pa.depot and jdk6aa_16002_pa.depot with allow_incompatible=true option

Why are you doing this? BMC Remedy has PA JNIs?

>the default is to run in a 32-bit environment.

Yes.

>The Java installed needs to be the 32 bit version."

As SEP said, you have both.
Wim Rombauts
Honored Contributor

Re: java 32bit only install on 11v3 IA64

Indeed, why do you install PA depots ?
Why haven't you installed the IA version ?
Norman Dignard
Regular Advisor

Re: java 32bit only install on 11v3 IA64

Thanks for the info but no one has answered my question.

I am aware of the java download site. No where have I found a 32bit only IA depot. From my understanding for Remedy, they required 32bit only Java and as you pointed out, I have both.

In review of java documenation, the only info I found in the release notes is that for example Jre60.JRE60-PA20W, the W means 64 bit.

so my question again is for a 32bit only install - is this a an install option? A different depot? It is not apparent from the download site which one is 32bit only.
Dennis Handly
Acclaimed Contributor

Re: java 32bit only install on 11v3 IA64

>but no one has answered my question.

(Only indirectly. We didn't want to suggest that you aren't getting the proper info from BMC.)

>they required 32bit only Java and as you pointed out, I have both.

It shouldn't matter if you have both. Java will use the 32 bit version without -d64.

>for a 32bit only install - is this an install option?

No. There is no need for this, unless you want to save disk space.
Norman Dignard
Regular Advisor

Re: java 32bit only install on 11v3 IA64

This is what BMC says is required:

"32 bit Java SDK 6.0 since the Library files for ARS and Mid Tier are written for 32 bit and not 64 bit. Since HPUX may require a different "brand name"
the main point is that it must be 32 bit Java SDK (or JDK) and version 5 or 6.0."

According to them my install would not work.
As what 32bit download is there from HP?

Dennis Handly
Acclaimed Contributor

Re: java 32bit only install on 11v3 IA64

>This is what BMC says is required:
"32 bit Java SDK 6.0 since the Library files for ARS and Mid Tier are written for 32 bit and not 64 bit.

You have a 32 bit Java as long as you don't use -d64. And the above is saying BMC has 32 bit JNIs.

>As what 32bit download is there from HP?

HP-UX's java has both 32 and 64 bit available.

What is your real problem? What errors are you getting?
Norman Dignard
Regular Advisor

Re: java 32bit only install on 11v3 IA64

This is what I don't understand.

- BMC states that it needs to be 32 bit java.
- Java downloads from HP don't spec a 32bit only download.
- Java docs states that by default java runs in 32bit mode unless you spec the -d64 switch.
- All filesets installed report HP-UX_B.11.11_32/64

Do I swremove the PA20W/IA64W filesets to satisfy BMC's need? (I've tried to get this info from them but that have yet to address this. They just skirt around it. Great suppoort there!!)

As for the java path I noted that there are multiple bins under the /opt/java6. During the app install I point to /opt/java6/bin.
Should this be to /opt/java6/bin/PA-RISC2.0/bin instead?


The problem we saw during the app install is that it puts a new mod_jk.so file into the apache modules dir. According to BMC "java compiles the files needed to use the mod_jk.so. If the compiler is
using 64 bit libraries to compile a 32 bit library file, it will either error or corrupt the file."

Well it apparently does as after the app install, apache won't start complaining about the file having a "bad magic number".


Dennis Handly
Acclaimed Contributor

Re: java 32bit only install on 11v3 IA64

>- BMC states that it needs to be 32 bit java.

You have that. They need to tell you why their product doesn't work and to not use this as an excuse.

>- All filesets installed report HP-UX_B.11.11_32/64
>Do I swremove the PA20W/IA64W filesets to satisfy BMC's need?

You can't.

>During the app install I point to /opt/java6/bin. Should this be to /opt/java6/bin/PA-RISC2.0/bin instead?

No need, the correct one is used.

>The problem we saw during the app install is that it puts a new mod_jk.so file into the apache modules dir. According to BMC "java compiles the files needed to use the mod_jk.so. If the compiler is
using 64 bit libraries to compile a 32 bit library file, it will either error or corrupt the file."

They have some words wrong but I can see a possible problem.
What does "file mod_jk.so" show?

>apache won't start complaining about the file having a "bad magic number".

Do you get that "bad magic number" or not?
Do you have a 64 bit apache?