Saturday 16 February 2002 07:59 pm Jon Doe wrote:
On Sat, 16 Feb 2002 19:47:02 -0500 which java: /usr/lib/java/bin/java
java -version: java version "1.1.8
whereis java: java: /usr/lib/java /usr/share/man/man1/java.1.gz
I tried the above that you mention and still get the same error.
It looks as if you have 1.1.8 as the first thing in your path, or as the only Java installed. There is a rather ugly complication resulting from the fact StarOffice requires 1.1.8. When you install the StartOffice RPM, you end up with 1.1.8 'taking over'. I really wish SuSE would do something to cause StarOffice to set the necessary parameters in its startup script, and not mess up the rest of the Java on the system. 1.1.8 is ancient, and should not be treated as the primary Java on the box. I finally did exactly that, and removed the automatic setup of java from the /etc/rc.config. I just installed Java 1.4 using sun's RPM. I am setting my $CLASSPATH, $PATH, and $JAVA_HOME by hand in the /etc/profile.local. This is one of the things I don't like about Java. Each upgrade breaks code written for, and/or compiled with older versions. What I did is cd /usr/lib/. ls -l to make sure java was a symlink. rm java. ln -s ../java/j2sdk1.4.0. and put PATH=/usr/lib/java/bin:$PATH and export JAVA_HOME=/usr/lib/java in the /etc/profile.local. You don't officially need the JAVA_HOME, but some people still depend on it in their code. If this doesn't make a lot of sense, I can try to explain it better if you're still stuck. Steven