mojira.dev
MCL-1961

Minecraft fails to choose correct Mac OS X Java version by default

On my mac, I have two versions of Java installed (Java 1.6 from Apple and Java 1.7 from Oracle). I have Java 1.6 installed because some legacy software requires it and mods such as FTB and Tekkit require me to use it and launch them with
cd /Users/Alex/Minecraft/FTB
export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
java -jar FTB_Launcher.jar

However, the minecraft 1.6 launcher seems to be choosing the wrong version. In the snooper settings, the Java version is 1.6. The launcher tells the same story. Minecraft should not be choosing this old, no longer updated, and relatively insecure Java version.

Edit:
In the new launcher, by going into the profile editor, and editing the profile so that the executable box is checked, it is possible to use the latest version. The text box needs to say /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java , but the critical problem here is that minecraft fails to choose the more modern, secure version. However to fully integrate Java 1.7 however, something would need to be changed because it reduced FPS by about 40 on average.

Related issues

Attachments

Comments

migrated
[media][media]
migrated

You should just be able to change the JAVA_HOME variable to 1.7

migrated

Just changed and it did start using Java 1.7, but the problem is that it defaults to the wrong one.

migrated

one possible problem that may occur is that Java 1.7 has considerable performance problems and reduces my FPS by about 40

migrated

updated

migrated

Apple app bundle only works with Java 1.6 from Apple. To use Oracle's 1.7 you have to rebuild the package with the appbundle from Oracle.

http://stackoverflow.com/questions/14806709/application-is-using-java-6-from-apple-instead-of-java-7-from-oracle-on-mac-os-x/15271448#15271448

migrated

Is this still a concern in the current Minecraft version 1.7.2 / Launcher version 1.3.4 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

migrated

Is this a duplicate of MCL-1049?

migrated

(Unassigned)

Unconfirmed

security

Retrieved