Re: Java1.5 software depot install query (362 Views)
Reply
Super Advisor
Nyck_1
Posts: 224
Registered: ‎01-07-2005
Message 1 of 4 (393 Views)

Java1.5 software depot install query

[ Edited ]

Hello,

 

I have the following version of Java1.5 installed on one of my Itanium servers:-

 

 Java15JDK                     1.5.0.07.00    Java 1.5 JDK for HP-UX 
 Java15JDKadd                  1.5.0.07.00    Java 1.5 JDK -AA addon for HP-UX

 

I now have a requirment to install 1.5.0.03 but when I try to do so it complains about the newer version. What I need to be able to do is to install the earlier version and also keep the original version, is this possible using swinstall and if so how do you do it?

 

Also when someone replies to this query I used to get an email but this does not seem to work anymore, can someone remind me on how I re-enable this please?

 

Cheers

 

Nick

 

 

P.S. this thread has been moved from HP-UX > System Administration to HP-UX > patches - HP Forums moderator

Acclaimed Contributor
Dennis Handly
Posts: 25,292
Registered: ‎03-06-2006
Message 2 of 4 (377 Views)

Re: Java1.5 software depot install query

>I now have a requirement to install 1.5.0.03

 

Why do you want to use an obsolete version?  The latest should be forward compatible.

 

>when someone replies to this query I used to get an email

 

You can subscribe to all topics you create:

http://h30499.www3.hp.com/t5/user/myprofilepage/tab/user-subscriptions

   Automatically subscribe me to topics I participate in

 

Or use the Topic Options at the top left to Subscribe to the current topic.  (Not the RSS one.)

Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 3 of 4 (366 Views)

Re: Java1.5 software depot install query

If I recall correctly, swinstall installs Java1.5 to /opt/java1.5, whatever the exact version is.

 

However, all the JDK files are stored to /opt/java1.5, so you can rename/copy the directory after installation. You will need to edit the JAVA_HOME or similar Java path variable in your application configurations, but otherwise the renaming is very straightforward.

 

You could copy the current /opt/java1.5 directory to /opt/java1.5.0.07:

# cp -rp /opt/java1.5 /opt/java1.5.0.07

 After the copy operation is complete, you can then e.g. swremove the currently-installed Java1.5 from /opt/java1.5, install 1.5.0.03, rename the /opt/java1.5 directory (which now contains 1.5.0.03) to /opt/java1.5.0.03, and create a symbolic link /opt/java1.5 which you can then point to /opt/java1.5.0.07 or whatever is the latest installed version.

 

When you install the next Java1.5 version, you should first remove the symlink, perform the installation & renaming, and re-create the symlink afterwards.

 

This will allow multiple Java patch levels to coexist. You'd then configure your applications JAVA_HOME accordingly:

for applications that must use a particular Java patch level, you would use JAVA_HOME=/opt/java1.5.0.03 or similar, and for applications that accept patched versions of Java, you could use JAVA_HOME=/opt/java1.5 as usual.

 

I've done this before successfully on HP-UX 11.00, 11.11 and 11.23 at least. Usually the reason for doing this is an expensive application whose support is picky about versions: "Our application is certified, tested and supported only on Java1.5.0.x. If you update to Java1.5.0.(x+1) and have a problem, you'll be on your own." Sometimes this only becomes apparent when there is an acute problem and the application support responds: "I see you have Java1.5.0.(not-x). Please verify the problem is reproducible on Java 1.5.0.x or go pound sand. Closing call." In such a situation, it becomes very important to have the capability to easily revert to their One True Patchlevel.

 

Also if the server contains multiple applications, each with different update cycles and Java version requirements, you may end up with conflicting requirements unless you've prepared to maintain multiple JDK/JVM patchlevels on the same system, so that you can make Java version choices per-application.

MK
Acclaimed Contributor
Dennis Handly
Posts: 25,292
Registered: ‎03-06-2006
Message 4 of 4 (362 Views)

Re: Java1.5 software depot install query

If your java is packaged with "is_locatable true", then you can do something like in here:

http://h30499.www3.hp.com/t5/Patches/Fileset-installation-using-swinstall/td-p/4200959

 

You can check with swlist:

swlist -l fileset -a is_locatable -s $PWD/foo.depot

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.