![](https://seccdn.libravatar.org/avatar/3d65ce348306eb0e36a6ec890e3e1b2d.jpg?s=120&d=mm&r=g)
On Thursday 17 October 2002 04:35, Salman Khilji wrote: <snipped>
2) I reinstalled java2 from the DVD, but the appropriate JDK_HOME environment variables were not set. Furthermore, the java program under /usr/lib/SunJavaxxx/bin was not found in the path. The java directory usually is set by SuSEConfig (I think). Looks like this problem is related to problem 1).
You can tell it not to set the java directory in 8.x by editing /etc/sysconfig/java an changing CREATE_JAVALINK="no" In 7.x I think it was in /etc/rc.config.
/usr/lib/java exists. I had to add /usr/lib/java/bin to the path manually in /etc/profile.local
/usr/lib/java is a symlink set when you've got CREATE_JAVALINK="yes", e.g. this is the default for 8.1: lrwxrwxrwx 1 root root 12 2002-10-03 11:08 /usr/lib/java -> SunJava2-1.3 If you set it to "no" and recreate the symlink to point to your preferred java version that should do it. HTH Fergus -- Fergus Wilde Chetham's Library Long Millgate Manchester M3 1SB Tel: +44 161 834 7961 Fax: +44 161 839 5797 http://www.chethams.org.uk