removing Java 1.5 creates many dependencies. (213 Views)
Reply
Occasional Advisor
harshman1958
Posts: 23
Registered: ‎03-04-2014
Message 1 of 2 (213 Views)

removing Java 1.5 creates many dependencies.

[ Edited ]

HPUX 11.31, Trying to remove java 1.5 and it is creating about a dozen or more dependent filesets.  Most of these are Virtual server related and workload manager.  We have Java 6 and 7 installed.  Any easy way to get this java 1.5 removed?  can i turn off enforce dependencies, or will that create a big issue?

thanks

 

 

P.S. This thread has been moved from HP-UX>System Administration to HP-UX > patches. -HP Forum Moderator

Honored Contributor
Patrick Wallek
Posts: 13,771
Registered: ‎06-21-2000
Message 2 of 2 (201 Views)

Re: removing Java 1.5 creates many dependencies.

Setting 'enforce_dependencies=false' is rarely a good idea, in my opinion.  

 

If you want to make sure that Java 1.5 is not used, you can always rename the java binaries themselves to something else.  

 

Here are the Java 1.5 binaries on one of my older 11.11 systems:

 

# pwd
/opt/java1.5

# find . -type f -name java | xargs ll
-r-xr-xr-x   1 bin        bin         126648 Jul 27  2006 ./bin/PA_RISC2.0/java
-r-xr-xr-x   1 bin        bin         133944 Jul 27  2006 ./bin/PA_RISC2.0W/java
-r-xr-xr-x   1 bin        bin         130744 Jul 27  2006 ./bin/java
-r-xr-xr-x   1 bin        bin         126648 Jul 27  2006 ./jre/bin/PA_RISC2.0/java
-r-xr-xr-x   1 bin        bin         133944 Jul 27  2006 ./jre/bin/PA_RISC2.0W/java
-r-xr-xr-x   1 bin        bin         130744 Jul 27  2006 ./jre/bin/java

 

 

Forcibly removing java does have the potential to break other things, if other software truly does depend on Java 1.5.  By first renameing the java binaries.  Then if nothing breaks, you could try to remove the software completely.

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.