Skip to content

Commit

Permalink
[JENKINS-45287] Include PATH info in no java found error message
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-arabaolaza committed Jul 7, 2017
1 parent d076d29 commit 1945c6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deb/build/debian/jenkins.init
Expand Up @@ -47,8 +47,8 @@ fi

# Make sure there exists a java executable, it may not be allways the case
if [ -z "$JAVA" ]; then
echo "ERROR: No Java executable found in the system" >&2
echo "If you actually have java installed on the system make sure 'which java' returns the java executable path" >&2
echo "ERROR: No Java executable found in current PATH: $PATH" >&2
echo "If you actually have java installed on the system make sure the executable is in the aforementioned path and that 'which java' returns the java executable path" >&2
exit 1
fi

Expand Down

0 comments on commit 1945c6f

Please sign in to comment.