Thursday, November 4, 2010

Railo and JAVA_HOME issues (exec: 40: -jar: not found)

I have read others getting the "exec: 40: -jar: not found" error even after having the JAVA_HOME variable set, but I have not experienced that issue until today.

To resolve this issue I discovered that manually setting JAVA_EXE along with JAVA_HOME in the ~/.bashrc file fixes the issue.

Like this:  (for my java installation on Ubuntu, yours may be different)

export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
export JAVA_EXE=$JAVA_HOME/bin/java

That's it. Then Railo worked like a charm.

Another wrap!