I checked the java it is installed on my system.If i enter whereis java
it shows me the
/usr/bin/java
I want to set the JAVA_HOME
, i already gave the path /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
but it won't work.
If i enter $JAVA_HOME
it returns nothing.
If i enter this command
/usr/libexec/java_home -v 1.7
it shows me the result/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
but while setting up my local workspace it won't work it simply says
`/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home` is not valid `JAVA_HOME`
How can I resolve this issue?