tags:

views:

60

answers:

1

Hi,

I am developing an aplication in cocoa which uses some java classes .I am getting an error "JAVA_HOME is not defined correctly We cannot execute /System/Library/Frameworks/JavaVM.framework/Home/bin/java".I dont know how to resolve this..Please anyone help me..

Thanks in advance

+1  A: 

Set JAVA_HOME to point to the .../Home directory, not the java binary. E.g.

export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home

Why are you setting the environment variable in the first place? You shouldn't have to do this on OS X...

liwp