Solaris 8, Patch Manager 2.0 and JAVA_HOME

Hi,

Is there any way to use a different version of java for smpatch running on Solaris 8 (Patch_Manager 2.0)?

The application that I happen to have installed on the server is configured to use the system version of java (/usr/bin/java) and must be kept at a version of 1.2.2 for their application to work (!)

I've installed the version that comes with the Patch_Manager_2.0 software - 1.4.1_03 and have set my JAVA_HOME variable, but still get errors when trying to use the smpatch command:

# echo $JAVA_HOME

/opt/local/java/usr/java

# ls -saF $JAVA_HOME

total 20780 34 LICENSE 2 include/20672 src.zip

2 ./ 18 README2 jre/

2 ../ 32 README.html2 lib/

10 COPYRIGHT2 bin/ 2 man/

# smpatch get

Exception in thread"main" java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider

at com.sun.patchpro.model.PatchProAccessor.<init>(PatchProAccessor.java:33)

at com.sun.patchpro.cli.PatchProSetup.<init>(PatchProSetup.java:157)

at com.sun.patchpro.cli.PatchProSetup.main(PatchProSetup.java:514)

#

I need a way of running smpatch using a different location for java. I've looked through the /usr/lib/patch/com/sun/patchpro/conf/Config.properties file but haven't found any way of overriding java. The man page says that the JAVA_HOME variable is honoured, but I still can't make it work - even when changing my path to have my updated version of java come before /usr/bin.

Any ideas?

[1546 byte] By [sally_ha] at [2007-11-27 2:09:37]
# 1

Hi,

I've just found the following in another thread:

The workaround for the bugID 6221832 (java being in another path than the default /usr/j2se/bin/ for Patch Manager 2.0 on Solaris 8) is to edit the pprosetup and pprosvc scripts

from /usr/sbin/pprosvc :

JAVACMD=/usr/j2se/bin/java

edit pprosetup and pprosvc scripts file and set JAVACMD locale variable to newly java installed path and launch smpatch get command again

Thank you.

I've editted both scripts and changed the JAVACMD variable to be ${JAVA_HOME}/bin/java and now everything is working.

Thanks.

sally_ha at 2007-7-12 2:00:16 > top of Java-index,Administration Tools,Sun Update Connection-System...