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?