mojira.dev
MCL-1049

Launcher does not detect Java 7/8 while it is present - Mac OS X

The new OSX launcher for Minecraft is finaly done, you can download it here 🙂 https://minecraft.net/download

Moderator Note

With the JRE 7 or 8 installed, the launcher can launch the game using it, by changing the Executable in the Edit Profile menu to the following:

  • /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java

I installed Java 7 on my Mac but the launcher still does not recognizes the Java install.

The installation path of Java on my mac is:
/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home

There is a workarround to start the game with Java 7, what you do is this:

1.) Start Terminal.app
2.) cd /Applications (to the location of the launcher)
3.) java -d64 -Xmx1024M -jar Minecraft.app/Contents/Resources/Java/Bootstrap.jar (as which -d64 forces it open 64 bits)
And then the launcher will start with Java SE 7

If you do install Java SE 6 and start the launcher, it will use Java SE 6. But using my workarround you will boot it Java SE 7 (depending on the standard Java version on the Mac)

Translation of the first screenshot of the middle screen: "To run 'Minecraft', you will nee Java SE 6-Runtime. Would you like to install now?"

Linked issues

MC-58088 Minecraft on Mac Uses Apple Java Instead of Newer Oracle Java Resolved MC-73285 Cant play Minecraft on OS X 10.10 Resolved MC-73792 OSX 10.9-10.10 Java 7/8 SE Incompatibility Resolved MC-74079 minecraft cannot run on mac osx 10.10 Resolved MCL-1427 Bootstrap fails Resolved

Attachments

Comments 151

If you don't mind me asking, what does it matter?

If only Java SE 7 is installed it wont start the launcher out itself

Can't you just install Java 6?

This works wonders... starting it normally (not using this Terminal workaround) causes the launcher to fail on my system with an "out of memory exception - java heap size".

Starting it using terminal seems to work just fine... also makes it use the Java 7 instead of 6
Please make Minecraft use the correct version of Java installed... why should it default to Java 6 when you have Java 7 installed???????

I think your $JAVA_HOME environment variable is still pointing at java6.

Feel free to see where it is when you do: echo $JAVA_HOME on the console.

141 more comments

Thank you!
So I use the bootstrap.jar as the launcher now?
I know how to make the launcher's icon the bootstrap's icon so I won't go crazy because it is shown as a .jar file.
That really helped!

Yes. The grass block icon of the .app package is purely a wrapper. It's literally a wrapper used to open the real launcher, the Bootstrap.jar file.

https://twitter.com/jbernhardsson/status/642344336567476224
The new OSX launcher for Minecraft is finaly done, you can download it here 🙂 minecraft.net/download
9:29am - 11 Sep 15

Weep for joy.

migrated

Erik Broes

Confirmed

java7, mac

Retrieved