I can't seem to get any Java based apps to run on my MacBook Pro (10.6 Snow Leopard).
I was not able to get a few java based apache apps to run. First I tried to get hadoop to run, then I tried launching apache tomcat, and then finally I downloaded an ftps app that depended on java and THAT couldn't find what it needed in the current value of JAVA_HOME.
If I can get hadoop/hbase running I think I will have a basis for getting those other Java apps to work. When I run the startup scripts as the hadoop user which I added it seems to look for Java here:
Code:
/usr/local/hadoop/bin/../bin/hadoop: line 258: /System/Library/Frameworks/JavaVM.framework/Versions/Current/JavaVM/bin/java: Not a directory
This is the current value of my JAVA_HOME environment variable.
The problem seems to be that Hadoop is looking for the JVM to be called 'java' in the 'bin' subdir of Current. I have also tried setting the value to 'Current/JavaVM' in which case it looks for 'Current/JavaVM/bin/java'.
But on my Mac the right place for JAVA_HOME seems to be called 'JavaVM' and living on the root of Current. How do I tell hadoop the correct name of my JVM? I have noticed this in all java powered apache apps, and again am just using hadoop here as an example.
I think if I get this hadoop problem solved I'll be able to solve the problem for all my java apps that currently aren't working.