How to Install Java in OS X 10.8 Mountain Lion

Why Java is removed after upgrading to OS X Mountain Lion and how to reinstall it. 

Java on OS X Mountain Lion

If you just upgraded your Mac to OS X Mountain Lion you probably noticed that Java Runtime Environment (JRE) is removed from your system. Apple has decided that Java is unnecessary for OS X and Mountain Lion upgrade process uninstalls Java but you can install it afterwards. Apple theoretically tries to reduce the risk of security problems with Java just like we saw few months back with Flashback Trojan which infected over 700,000 Mac computers.

If you still want to install Java on your OS X Mountain Lion powered Mac here is simple tutorial you can follow:

There are two different methods on how you can install Java in OS X Mountain Lion, first is simpler than the second one so if you just switched to mac I strongly recommend using the first method.

First method

  • When browsing the web which requires Java app you will be prompted to install Java for OS X (2012-004 current version) directly from Apple website.

Instal Java OS X Mountain Lion

  • Hit “Install” and wait till the process is completed

Second method

Like I said, the second method is better for many advanced users since it requires using terminal but it will work any time even if you haven’t tried to open content that requires Java.

  • Launch “Terminal” from /Applications/Utilities/ and write the following command in order to install Java:
Java –version
  • Now hit return and you will notice message saying, “No Java runtime present, requesting install” and you will be prompted to install Java SE in order to open “Java” content. Hit “Install” to get the latest version of Java.

Java is installed from Apple website instead of Java.com because Apple checks each and every app which is installed on your Mac to avoid security breaches.

It is recommended to avoid using Java on your Mac because most vulnerabilities found in Mac are related to Java Runtime Environment. Not many websites and apps require using Java on OS X Mountain Lion so if you decide to install Java I recommend keeping it disabled for the most of the time to avoid viruses and malware. More about OS X security I will talk some other time but Mac doesn’t require antivirus software if a user knows what he’s doing

, , , , , , ,

7 Responses to How to Install Java in OS X 10.8 Mountain Lion

  1. admin December 28, 2012 at 3:26 am #

    que estupides, esto no tiene nada que ver con ubuntu

    • James December 28, 2012 at 7:47 am #

      And your comment has nothing to do with English 🙂

  2. Nick January 9, 2013 at 1:16 am #

    I dont understand this site… There is more iOS than ubuntu….

  3. Max February 4, 2013 at 6:22 pm #

    Hi Richard, thank you for your post. I just started with a brand new mac (10.8) and need to install tomcat7 on it. I followed your instructions (second method) but I get an error:

    # java -version

    No Java runtime present, requesting install.

    2013-02-04 19:19:04.326 java[7108:707] JLRequestRuntimeInstall: Error calling: CFMessagePortCreateRemote

    Cannot understand it. Am I missing something? Do you know any “Third or Fourth Method”?
    Thank you in advance for your help
    Massimo

    • Richard February 4, 2013 at 9:10 pm #

      Open the terminal and type “java” without quotes and check what happens. It should trigger “Software Update”.
      Let me know if it works for you.

  4. Miriam September 5, 2013 at 2:31 pm #

    This worked like a charm, thanks! I must’ve tried loading from the java site a million times with no success. I did the second method and was done in 2 minutes flat. Seriously, thanks.

  5. Miriam September 5, 2013 at 2:33 pm #

    This worked like a charm, thanks! I’m new to using a mac and must’ve tried loading from the java site a million times with no success. I did the second method and was done in 2 minutes flat. Seriously, thanks.

Leave a Reply

Powered by WordPress. Designed by Woo Themes