You are not logged in.
Pages: 1
I tried running Eclipse and got an error that said that it looked for Java in /usr/share/eclipse/jre/bin/java and couldn't find it, so it can't run.
I'm pretty sure both the JVM and JDK are installed, although running 'java' and 'javac' result in "bash: java/javac: command not found".
Thanks.
Offline
Do you have the files /etc/profile.d/{jre,jdk}.sh? Do they get sourced when you log in? They should. They are the ones that set up the various paths required to run java. I'd also have a look at /etc/profile. It should contain this part, that sources all files in /etc/profile.d:
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -x $profile && . $profile
done
unset profile
fi
Offline
export PATH=$PATH:/opt/java/bin:/opt/java/jre/bin
check the paths exists
export JAVA_HOME=/opt/java/jre
that helped me
/Hasse
Offline
Thanks, the export PATH worked.
Offline
Pages: 1