This is a small tool intended for the easy task of finding all installed (Java 1.7+) JREs on your computer.
Why? To streamline the process of switching to Java 7 on mac, as some of mine (or other people's) mods are coded for Java 7, but OSX still distributes Java 6.
(It's an Automator App - Feel free to edit it in Automator before launching to assure the tool's validity :))
Switching From Java 6 to 7 on a Mac
1) Download and install the latest version of Java (7 or 8)
1) Download the tool from above
2) Run the tool. It should open a text document with all your installed JREs
3) Copy one of the paths with 'jdk1.7' in the name (preferably: The latest)
----- If there is none, follow the alternative tutorial below instead. It happens on some computers.
4) Open Minecraft, edit your Forge profile
5) Check the 'Executable' box in 'Java Settings'
6) Paste the path in the text field next to it
And you're done! I hope this makes the whole process a bit quicker.
Alternative: Java Home Command (Also works on Linux)
If the tool doesn't list anything for you, follow these steps as an advanced method.
I would wrap this in an automator tool, too, but it simply doesn't work out, I'm afraid. Automator is weird.
1) Open Terminal (/Applications/Utilities/Terminal.app)
This should give you a list of all installed java versions 1.7 and later, assembled by Java itself. If this doesn't list anything, you don't have Java 7 installed.
Now simply find the latest, and copy its path (marked in italics above). You can now resume with Step 4 of the tutorial above.
can someone just paste the latest java 7 path for me?
It's not as simple as that - every Java version has a different path, and it may even differ from machine to machine. If you don't get any output from the tool, you probably don't even have Java 7 installed
Ok I ran the test on the java website, and it confirmed that it is installed. The tool still shows nothing. I'm gonna try to re-download the tool and see if that helps.
I did the steps above and tried to run a Mod that requires java 7, and I'm still on the launcher. It's giving me Game Output (Lili_Ash) and then showing no text, just white. What am I doing wrong?
I did the steps above and tried to run a Mod that requires java 7, and I'm still on the launcher. It's giving me Game Output (Lili_Ash) and then showing no text, just white. What am I doing wrong?
'No text, just white'? Can you elaborate on that, please? Where is the 'text' supposed to be, the console log? The launcher? The game? And what do you mean by it giving you game output?
It's a tab on my launcher. The tab is labeled "Game Output (Lili_Ash)" and instead of having text where the white is (like a crash report/error log/etc), it's just white. It doesn't load Minecraft past that, and it doesn't seem to work.
It's a tab on my launcher. The tab is labeled "Game Output (Lili_Ash)" and instead of having text where the white is (like a crash report/error log/etc), it's just white. It doesn't load Minecraft past that, and it doesn't seem to work.
Ah, I see. Then your option probably points towards an invalid folder. Exactly what did you set as 'Exectutable'?
The only thing that came up when I ran the app above was /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/bin/java. The original executable came up with /System before the rest and redirected to 1.6.0_65, so I left /System. Should I have removed it?
So... I removed /System, and it ran fine until it told me it needed the latest Forge version. This has been a big help, thanks!
I am having the same issue as the posters above, but can't even get as far as they have:
The tool you provided only returns a blank text document. In Terminal, the command "usr/libexec" etc., returns the message "Unable to find any JVMs matching version "1.7" and says it only finds 1.6.
But I have downloaded Java 7. The website says that I have it successfully installed. In Terminal, the command "java -version" returns the result 'java version "1.7.0_71"'. Shouldn't that mean that I do in fact have Java 7 installed?
Do you have any further suggestions or diagnoses? I was only able to get as far as the above after searching thru the weeds of the internet and finding a solution that finally got Terminal to recognize that 7 was even there ...
I am having the same issue as the posters above, but can't even get as far as they have:
The tool you provided only returns a blank text document. In Terminal, the command "usr/libexec" etc., returns the message "Unable to find any JVMs matching version "1.7" and says it only finds 1.6.
But I have downloaded Java 7. The website says that I have it successfully installed. In Terminal, the command "java -version" returns the result 'java version "1.7.0_71"'. Shouldn't that mean that I do in fact have Java 7 installed?
Do you have any further suggestions or diagnoses? I was only able to get as far as the above after searching thru the weeds of the internet and finding a solution that finally got Terminal to recognize that 7 was even there ...
That's very odd, and sounds a bit hacky, to be honest.
What does '/usr/libexec/java_home -V' give you? It should, potentially, print out all the versions you have installed overall.
If this gives you anything useful, try the rest of the steps with that instead.
You can also try finding your installation home manually, wherever it is installed. I'm not sure where you'd have to look specifically, if the tool doesn't output anything, but the internet might help.
If nothing else helps, I'd suggest completely uninstalling java and installing 1.6 and 1.7 again from scratch.
'/usr/libexec/java_home -V' gives me 1.6 and makes no mention of 1.7.
I look around online, and lots of people seem to have something resembling this problem, but it seems very hard to pin down what exactly is going on. Worse, I will confess total ignorance about how this stuff is supposed to work, so it all looks like technobabble when they start throwing solutions around.
Apple has hurt its users who develop in Java by declaring an end to Java support but continuing to update Java 6 using its automatic update program. This means that installing Oracle Java 7 JDK is a hassle to begin with, and if you blindly accept all of Apple's software updates (that is, you don't remember to uncheck Java updates when they appear) you'll have to re-do parts of your Java 7 installation from time to time because Apple's Java updates reset all the symlinks to point to its own Java 6.
That sounds vaguely like what might be going on with my machine. But even his solution scares me off, since it involves diving into InstallHistory.plist and manually editing it.
Thank you for your help. If the above issue is what is going on, I'm not certain it's worth trying to fix, since it sounds like the Apple weasels will just break in and undo the fixes if I'm not hyper-watchful.
Of all the bizarre and marvelous coincidences, I found a solution in a thread dedicated to a mod that had nothing to do with my trouble. On page 103 of the "Enchanting Plus" thread on these forums, user JustAStupidName [yes, that's the username he chose; I'd give him a much more flattering one] outlines these steps for Mac users wishing to use Java7:
-Go to System Preferences … -> Java -> tab: Java -> View -> Path
-Copy the path value found in the above step.
-Start Minecraft; chose the profile Forge (or create a new profile) and click Edit Profile
-Under Java Settings (Advanced), check the box next to Executable and paste the copied value
-Click Save Profile
And that did the trick for me. I'm posting this solution here, as an appendix to the kind work Ivorius has done.
I opened up the tool after I click the "Java 7" link but it has no text, please help me
Either you don't have Java 7 installed, which is entirely possible, or the tool doesn't work on your machine. Either way, the second part of the tutorial will always work no matter what.
This is a small tool intended for the easy task of finding all installed (Java 1.7+) JREs on your computer.
Why? To streamline the process of switching to Java 7 on mac, as some of mine (or other people's) mods are coded for Java 7, but OSX still distributes Java 6.
Download: http://www.mediafire.com/download/7gwtqdf1xp4nn0f/Find_JREs.app.zip
(It's an Automator App - Feel free to edit it in Automator before launching to assure the tool's validity :))
Switching From Java 6 to 7 on a Mac
1) Download and install the latest version of Java (7 or 8)
1) Download the tool from above
2) Run the tool. It should open a text document with all your installed JREs
3) Copy one of the paths with 'jdk1.7' in the name (preferably: The latest)
----- If there is none, follow the alternative tutorial below instead. It happens on some computers.
4) Open Minecraft, edit your Forge profile
5) Check the 'Executable' box in 'Java Settings'
6) Paste the path in the text field next to it
And you're done! I hope this makes the whole process a bit quicker.
Alternative: Java Home Command (Also works on Linux)
If the tool doesn't list anything for you, follow these steps as an advanced method.
I would wrap this in an automator tool, too, but it simply doesn't work out, I'm afraid. Automator is weird.
1) Open Terminal (/Applications/Utilities/Terminal.app)
2) Type in /usr/libexec/java_home -Vv 1.7+
3) Press enter to run the command
Example output:
This should give you a list of all installed java versions 1.7 and later, assembled by Java itself. If this doesn't list anything, you don't have Java 7 installed.
Now simply find the latest, and copy its path (marked in italics above). You can now resume with Step 4 of the tutorial above.
Ivorius does good work
It's not as simple as that - every Java version has a different path, and it may even differ from machine to machine. If you don't get any output from the tool, you probably don't even have Java 7 installed
Did some research, and I added an optional method below the first. This is a bit more complex, but should work out no matter what
'No text, just white'? Can you elaborate on that, please? Where is the 'text' supposed to be, the console log? The launcher? The game? And what do you mean by it giving you game output?
Ah, I see. Then your option probably points towards an invalid folder. Exactly what did you set as 'Exectutable'?
The only thing that came up when I ran the app above was /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/bin/java. The original executable came up with /System before the rest and redirected to 1.6.0_65, so I left /System. Should I have removed it?
So... I removed /System, and it ran fine until it told me it needed the latest Forge version. This has been a big help, thanks!
The tool you provided only returns a blank text document. In Terminal, the command "usr/libexec" etc., returns the message "Unable to find any JVMs matching version "1.7" and says it only finds 1.6.
But I have downloaded Java 7. The website says that I have it successfully installed. In Terminal, the command "java -version" returns the result 'java version "1.7.0_71"'. Shouldn't that mean that I do in fact have Java 7 installed?
Do you have any further suggestions or diagnoses? I was only able to get as far as the above after searching thru the weeds of the internet and finding a solution that finally got Terminal to recognize that 7 was even there ...
That's very odd, and sounds a bit hacky, to be honest.
What does '/usr/libexec/java_home -V' give you? It should, potentially, print out all the versions you have installed overall.
If this gives you anything useful, try the rest of the steps with that instead.
You can also try finding your installation home manually, wherever it is installed. I'm not sure where you'd have to look specifically, if the tool doesn't output anything, but the internet might help.
If nothing else helps, I'd suggest completely uninstalling java and installing 1.6 and 1.7 again from scratch.
I look around online, and lots of people seem to have something resembling this problem, but it seems very hard to pin down what exactly is going on. Worse, I will confess total ignorance about how this stuff is supposed to work, so it all looks like technobabble when they start throwing solutions around.
According to http://www.cc.gatech.edu/~simpkins/teaching/gatech/cs2340/guides/java7-macosx.html
That sounds vaguely like what might be going on with my machine. But even his solution scares me off, since it involves diving into InstallHistory.plist and manually editing it.
Thank you for your help. If the above issue is what is going on, I'm not certain it's worth trying to fix, since it sounds like the Apple weasels will just break in and undo the fixes if I'm not hyper-watchful.
-Go to System Preferences … -> Java -> tab: Java -> View -> Path
-Copy the path value found in the above step.
-Start Minecraft; chose the profile Forge (or create a new profile) and click Edit Profile
-Under Java Settings (Advanced), check the box next to Executable and paste the copied value
-Click Save Profile
And that did the trick for me. I'm posting this solution here, as an appendix to the kind work Ivorius has done.
Either you don't have Java 7 installed, which is entirely possible, or the tool doesn't work on your machine. Either way, the second part of the tutorial will always work no matter what.