Solaris Management Console, Java, and Solaris 8

Hello,

I have a SunFire 280R running Solaris 8.

The application running on the system will be upgraded soon, and required that I update Java.

I believe I've missed some steps, as the SMC (Solaris Management Console) will not run now.

I've read the SMC FAQ, but may have missed something. Any help would be appreciated.

Before doing anything:

# java -version

java version "1.4.1_03"

#

# cd /usr

# ls -la java

lrwxrwxrwx 1 root other 6 Mar 14 2003 java -> ./j2se

#

I installed a recent version of Sun Java from a CD-R which I had burned at home:

# cd /usr

# /cdrom/java_1_5_0_04/jre_1_5_.sh

agree?

Unpacking...

Checksumming...

extracting...

inflating...

Creating

Done.

#

# /cdrom/java_1_5_0_04/jre_1_52.sh

agree?

Unpacking...

Checksumming...

Done.

#

After the installation was complete, I replaced the link:

# cd /usr

# rm java

#

# ln -s /usr/jre1.5.0_04 java

# ls -la java

lrwxrwxrwx 1 root other 16 Oct 11 09:11 java -> /usr/jre1.5.0_04

#

# java -version

java version "1.5.0_04"

#

When I attempt to launch SMC from the CDE menu bar, it tries, then fails, without a message.

When I open a terminal and type "smc", it tries, and then I get a message that there is no valid version of Java in the places that it expects it, just as the FAQ mentions, and to either fix and try again, it set $JAVA_HOME.

This is right about where my knowledge of Solaris 8 abruptly ends. If I can type "java -version" in a terminal window and get the reply "java version "1.5.0_04"" then why can't SMC find it?

I am stumped. Someone tried to help by telling me to edit the .bashrc file, and add $JAVA_HOME, but I can't find that file on this system anywhere.

I was able to get the SMC to launch once, after trying to set $JAVA_HOME, but it apparently only worked for that terminal window. After the SMC was closed, and the terminal window closed, and someone tried to launch it from a new terminal window, it didn't work again.

I'm stumped. How can I get SMC to play nice with the newer Java?I know enough to know that this is probably very basic, and I am just forgetting something obvious.

thanks very much for your help!

-Bill

[2426 byte] By [bhance] at [2007-11-25 23:39:24]
# 1

You can at least put it in the .profile. If that doesn't work you may have to put in:

JDK_HOME=/usr/jre1.5.0_04

export JDK_HOME

in the .profile

My problem is trying to find which version of Java it requires. I'm getting errors about a java swing component for metal look.

At least hope part of this helps your problem

Michael

NWMoMike1 at 2007-7-5 18:47:26 > top of Java-index,General,Talk to the Sysop...