1
votes

This one has me pretty frustrated...

I've installed the Java JDK and got the command line successfully pointed at it. When I open jar files through the terminal it uses the correct JDK to run the jar.

However, when I attempt to open the same jar via double-clicking it in Finder, it uses a different Java executable! In this case, the one that's located at /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java.

How can I change what Java executable Finder is using?

1
right click => open with ?Thomas Ayoub
On mavericks, in system preferences there should be a java configuration utility where you can select the version. On older versions it used to be in /Applications/Utilites/Java<Somehting> This allows you to configure the version of java to use for the system.Chris Hinshaw

1 Answers

0
votes

System Preferences > Java Control Panel > Java > View... :

enter image description here