Phonegap/cordova "javac -version" Not Found.
Solution 1:
Okay,
So for some reason Java 1.7 and 1.8 don't want to play nice no matter how much encouragement I gave it. What I had to do is download Java 1.6 and use that. The thing with this though you can't get this from the Java Download site. Instead, you have to get it from Apple. You can get this here
http://support.apple.com/kb/DL1572
This is the same version of Java which was included in OSX 2013-005. Once you have downloaded this you will now have multiple versions of Java. The Java 1.6 version from Apple doesn't get placed in the same spot as the ones from Oracle. The Apple one get's placed in the System Library. This means you have to change the JAVA_HOME
var to this system one. Once I did that it was done.
So this is how I set my path:
export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
export PATH=$PATH:$JAVA_HOMEexport PATH=$PATH:$JAVA_HOME/bin
I have no idea why I couldn't get Java 1.7 and 1.8 working, but this is the only thing which fixed it for me.
Post a Comment for "Phonegap/cordova "javac -version" Not Found."