JAVA_HOME ignored if "which java" returns nonzero #258
Labels
imported from old code repo
Issue imported from Google Code in 2010
Priority: Medium
Represents important issues that need to be addressed but are not urgent
Type: Bug
Issues related to software defects or unexpected behavior, which require resolution.
Milestone
Original author: fgr...@gmail.com (November 27, 2010 16:52:51)
What steps will reproduce the problem?
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
2.0-r1836, linux
Please provide any additional information below.
Problem fixed by adding changing java version code to following:
if [ "$JAVA_HOME" ] ; then
JAVA="$JAVA_HOME/bin/java"
else
JAVA="
which java 2> /dev/null
"fi
JAVA_VERSION=
$JAVA -version 2>&1 | grep version | cut -d ' ' -f 3 | egrep ^\"1\.6
if [ -z "$JAVA_VERSION" ] ; then
error "Google Refine requires Java version 6 or later. If you have multiple versions of Java installed, please set JAVA_HOME to the correct version."
fi
Original issue: http://code.google.com/p/google-refine/issues/detail?id=258
The text was updated successfully, but these errors were encountered: