Image
So it didn't even produce the result we thought it would.
Ok, I think I see what's happened here. I reckon you're running Java 1.6. Later versions of JavaSE (i.e. current is 1.8) live in a different place. So whilst you have to d/l the latest version (provided by Weaselboy above) you will have to manually point OSX at the new Java version.
To make certain, run the command:
[Tip: You don't need to type the whole word in each directory, once you have typed three or four letters, <tab>will autocomplete the directory name. If it doesn't do this, press <tab> again and you will get a shortlist of directories with the same few letters. Simply type a few more letters to zero in on it.]
Code:
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java -version
and post the result.
This is mine:
Code:
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
If that is the case, and you have downloaded JSE 1.8 & installed it and you're still getting the error then:
N.B. If you're at this point and it's not exactly like this, I'd hesitate to run the following as it might screw things up more
Code:
sudo mv /usr/bin/java /usr/bin/java-1.6
This moves your existing link file to java-1.6 (rather than deleting it, it means you can roll back if anything goes wrong)
Install the newly downloaded version; Then:
Code:
sudo ln -s /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java /usr/bin/java
That sets up the new link to the new install directory for java.
[How did I find this directory? I used the command 'whereis java'. If that doesn't work, you could try 'sudo find / -name java']. Then you should be able to run:
and get a result like:
Code:
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
If you don't, try a reboot.
FYI, I was dicking around with this for ages. I'm pretty confident with the command line, but not sure if you are; it's not straightforward. As I said, if you're getting different results at any point, it may not work for you. Good luck!