With the end of public updates for Java 1.6 in February 2012, and the long list of security updates on the later 1.7, I am inclined to remove Java 1.6 and the JDK permanently from my Mac, if only I knew how to accomplish this in a clean way.
From Java Download page at java.com it says: Apple supplies their own version of Java. Use the Software Update feature (available on the Apple menu) to check that you have the most up-to-date version of Java for your Mac.
migrated from stackoverflow.comMar 12 '13 at 13:54
This question came from our site for professional and enthusiast programmers.
4 Answers
In Mac OS X 10.7 the JDK provided by Apple (Java 6) is installed in /System/Library/Java/JavaVirtualMachines/ so just delete it from there
The JDK provided by Oracle (Java 7) is installed in /Library/Java/JavaVirtualMachines/
Free Java 1.6 Mac
I had the same question until today.
From The macosx-port-dev Archives and How to properly uninstall Java 6 on OSX?:
I agree with the assessment below,
(Previous message)
I don't know the answer to your question, but I can suggest that you might be causing yourself unneeded problems.
Security updates are important because of web sites that use Java maliciously. But you can't use Java 6 on the web anyway. You can only run Java 7 for applets.
Java 6 is on your machine for legacy software that relies on it in standalone applications. The security issues aren't going to impact these apps. The security issues are invariably sandbox violation tricks, and the standalone apps aren't running Java sandboxed anyway.
however if you wish to rid your machine of Java SE 6, the correct procedure is:
Remove the 'system' JVM installed and maintained by Software Update
% sudo rm -rf /System/Library/Java/JavaVirtualMachines/1.6.0.jdk
Remove any Java Developer Previews
% sudo rm -rf /Library/Java/JavaVirtualMachines/1.6.0*.jdk
Do NOT remove any content in the JavaVM.framework (Note.: It under /System/Library/Frameworks/JavaVM.framework
)
Remove Java 1.6 Mac
Those items are required by Java 7, 8, 9+ as well as Java SE 6. No modern version of OS X has a Java JDK inside there anyway.
Go to the Macintosh HD/Library/Java/JavaVirtualMachines/ directory and remove the file called '1.6.0.jdk.'
Here is the official oracle documentation on how to uninstall jdk from a mac
JonRegarding the answer above that says:
Do NOT remove any content in the JavaVM.framework (Note.: It under /System/Library/Frameworks/JavaVM.framework
)
It's worth noting that /System/Library/Frameworks/JavaVM.framework
contains a Versions
folder, and at least in my case, that Versions
folder contained:
It doesn't seem useful to leave CurrentJDK pointing to a non-existent directory, so I ran this command in the /System/Library/Frameworks/JavaVM.framework/Versions
folder:
since that's where my new JDK is installed.
UPDATE: After removing Java 1.6 from my machine, the next time I ran PhpStorm, it told me it needed to download and install the Java SE 6 runtime. Afterward, the /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
link was reset to /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
. So it seems that the 1.6 JDK (or at least the JRE portion of it) may keep coming back, depending on other apps you use.
Not the answer you're looking for? Browse other questions tagged javamacos or ask your own question.
If you want to install Minecraft 1.6 for Mac without losing your saved games, here's how to install it. Minecraft 1.6 is called the 'Minecraft Horse Update' because it includes several new additions to the game. These include mainly animal themed features such as horses, donkeys, mules, horse armor and erm, carpets. There were some bugs in the initial release although these were quickly fixed in Minecraft 1.6.2 for Mac and and Minecraft has now been updated to version 1.6.11. Here's how to install Minecraft 1.6 for Mac:
How To Install Minecraft 1.6 For Mac
Before you do a fresh install of Minecraft 1.6 on your Mac it's, very important that you backup your saved games folder otherwise you'll lose any worlds you've created.
1. Open a Finder window – the smiley face in the bottom left corner of your Dock. Click the Go Menu item and select Go to Folder…:
3. Type ~/Library/Application Support/minecraft into the text field and click Go
4. Find the Saves folder and drag it onto your desktop. Drag everything else in the Minecraft folder into the trash
5. Download the new Minecraft 1.6 For Mac Launcher and drag Minecraft for Mac into your Applications folder.
6. Drag the Saves folder back into the new Minecraft 1.6 folder
Java 1.6 Mac Osx
7. Then just double-click on Minecraft in your Applications folder and the Minecraft launcher will start:
Remember that to play Minecraft, you'll need to sign-up for a Minecraft account. If you want to play Minecraft 1.6 online, you'll also have to install the Minecraft Server.
Note that Texture packs will also have to be converted into Resource Packs so that they support the changing of sounds, languages and other things. You can convert them using TextureEnder.jar.
Java 1.6 Mac Os X
You can see everything that's new in Minecraft 1.6 For Mac here:
If you have any questions or problems installing Minecraft 1.6 on your Mac, let us know in the comments below.