I believe that OS X (at least 10.8) uses the following paths:
- JRE:
/System/Library/Frameworks/JavaVM.framework/Versions/Current - JDK:
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
These are symbolic links that you can update by indicating installation 1.7.
You can check this out quite easily:
a) run which java to check which java executable is running. Theoretically, it should be /usr/bin/java .
b) run ls -la in a java executable that should tell you where it points ( /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java on my machine).
I think this should solve your problem with executing .jar . If your Java application is wrapped in .app , I find it somewhat more complex: if memory is used, the version of java used will depend on the JavaApplicationStub used by .app .
Nicolas rinaudo
source share