Hello,
I upgrade today to eclipse-3.1.1-7, and I have a problem to make eclipse
start.
Here is the output :
/usr/bin/eclipse
searching for compatible vm...
testing /usr/lib/jvm/java-gcj...found
Then I have this error :
A suitable Java Virtual Machine for running the Eclipse Platform could
not be located.
After looking at the script (/usr/bin/eclipse),I found the part
corresponding to the error, and the error it's due to $JAVA_HOME which
is not set.
It's set just before, when the script look for installed jvm :
# If the user has not set JAVA_HOME, cycle through our list of
compatible VM's
# and pick the first one that exists.
if [ -z "${JAVA_HOME}" ]; then
echo "searching for compatible vm..."
cat /etc/eclipse/java_home | grep -v '^#' | grep -v '^$' | \
while read JAVA_HOME; do
echo -n " testing ${JAVA_HOME}..."
if [ -x "${JAVA_HOME}/bin/java" ]; then
export JAVA_HOME
echo "found"
break
else
echo "not found"
fi
done
fi
So I'm not used with shell script and variable exporting, but I suspect
$JAVA_HOME is only set within the loop. When I echo $JAVA_HOME in the if
statement, it's ok, but after the variable is empty.
I do not have this problem with the previous eclipse version (3.1.1-6).
Thanks.
--
Sylvain Archenault
Attachment:
signature.asc
Description: OpenPGP digital signature