Reputation: 43
I am trying to install apache-tomcat-6.0.35 on Mac OS x 10.9, but I have this error in catalina.out when I run startup.sh :
/Library/Tomcat/Home/bin/catalina.sh: line 375: /Library/Java/Home/bin/java: No such file or directory
And thus, the server isn't launched.
Here is what I get in terminal (bash) :
myMac:bin administrator$ ./startup.sh
Using CATALINA_BASE: /Library/Tomcat/Home
Using CATALINA_HOME: /Library/Tomcat/Home
Using CATALINA_TMPDIR: /Library/Tomcat/Home/temp
Using JRE_HOME: /Library/Java/Home
Using CLASSPATH: /Library/Tomcat/Home/bin/bootstrap.jar
Any advice?
Upvotes: 1
Views: 1064
Reputation: 10698
I had the same issue, and I've made it work under OS X 10.9, with Java 6 (1.6.0_37-b06-434).
As it was complaining about a wrong path in Java in the catalina.out, I changed all the paths to my JRM in setclasspath.sh :
Old path :
/System/Library/Frameworks/JavaVM.framework/Versions/Current
New path :
/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home
There were 3 places affected :
if [ -z "$JAVA_HOME" -a -z "$JRE_HOME" ]; then
# Bugzilla 37284 (reviewed).
if $darwin; then
if [ -d "/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home" ]; then
export JAVA_HOME="/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home"
fi
[...]
# OSX hack to CLASSPATH
JIKESPATH=
if [ `uname -s` = "Darwin" ]; then
OSXHACK="/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home"
[...]
As you can see, the code already export JAVA_HOME
, so no need to export it in .bash_profile here.
Upvotes: 0
Reputation: 5658
It seems the issue is related to your JAVA_HOME environment variable. Check to see if it is correctly set. To verify, run
javac -version
or which java
on the command line to see which version of java is set and is the correct one that should be used.
Upvotes: 4