No valid Java SDK could be found

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

ericlomm

No valid Java SDK could be found

Postby ericlomm » Fri Feb 10, 2006 6:47 pm

Hello,

I have Installed the java2 sdk from two different sources but whenever I try to run the instal program I am getting a message saying that I don't have a valid java2 sdk installed.

The first source that I used were the CD's that my distribution of SUSE came on. The version that it said was installed is 1.4.2-129.7. When I got the message saying that I didn't have a valid java sdk installed I then went to java.sun.com and I downloaded the j2sdk_1_4_2_10-linux-i586.rpm.bin file and I followed the instructions for setting this up then I tried running the installation again and I am still getting a message saying that I do not have a valid Java sdk installed.

Can someone provide some pointers on why this does not appear to be working?

Thanks

Eric Lommatsch

mephisto

Postby mephisto » Fri Feb 10, 2006 7:12 pm

The installer looks for the environment variable JAVA_HOME. Sometimes you have to reboot the server to make it pick up the changes made by the installer.
If that doesn't work, change /etc/profile and add this (replace /opt/java/ with your path for java or simply set a symlink to it):

Code: Select all

if ! echo ${PATH} | grep -q /opt/java/bin ; then
export PATH=/opt/java/bin:${PATH}
fi

export JAVA_HOME=/opt/java
export CLASSPATH=.:/opt/java/lib/tools.jar:/opt/java/lib/rt.jar

After that either run
source /profile
or reboot the server again.


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 2 guests