Java mac os high sierra

How to Install Java on macOS Sierra

Some Mac users may need to install Java into macOS Sierra or MacOS High Sierra. Typically the need for Java is for specific app usage, particular app compatibility, or for developers, and it’s worth mentioning that most Mac users won’t need to bother installing Java at all. For those that do need Java however, you will find it’s easy to get onto the latest versions of MacOS.

As you may know by now, MacOS no longer ships with Java preinstalled, so you’ll need to download and install java on your own if you need it in MacOS 10.13 or 10.12. This is to insure that the most recent version of Java is installed on the Mac if it’s needed, aiming to lessen potential security issues that may come up with older versions of the Java software (though older versions of Java can be installed if need be for a specific reason).

Note: if you do not specifically need Java, you should not install it onto a Mac.

How to Install Java in macOS High Sierra & Sierra

The best approach to install Java on the Mac is to get the latest version of Java JRE directly from Oracle. This is fairly straight forward and you can either initiate the process from the terminal application in macOS or by going directly to the Java download page on Oracles website.

    Open the Terminal app and type the following:

  • Click on the “More Info” button to jump to the Java downloads page in a web browser
  • This will allow you to download and install the newest most recent version of Java available for the Mac, which is currently JRE8.

    Additionally, you can choose to go directly to the Java downloads page on Oracle.com where you can find the latest release of Java JRE and as well as the JDK if you need one, the other, or both. If you need an older version of Java for whatever reason, some Mac OS releases support JRE 6 as described here.

    How to Install Java JRE 6 on macOS High Sierra

    Some users may need to run JRE6 in modern MacOS releases, in which case you can download an updated installer appropriate for macOS High Sierra, Sierra, El Cap, and Mavericks too.

    The download notes from Apple for that releases are as follows:

    Java for macOS 2017-001 installs the legacy Java 6 runtime for macOS 10.13 High Sierra, macOS 10.12 Sierra, macOS 10.11 El Capitan, macOS 10.10 Yosemite, macOS 10.9 Mavericks, macOS 10.8 Mountain Lion, and macOS 10.7 Lion.

    This package is exclusively intended for support of legacy software and installs the same deprecated version of Java 6 included in the 2015-001, 2014-001, and 2013-005 releases.

    Quit any Java applications before installing this update.

    Download and run that Java installer to install Java Runtime Environment 6 in modern Mac OS versions if needed.

    Users might need to turn off SIP protection on the Mac before being allowed to complete the installation of Java.

    You can also uninstall Java from a Mac if need be after the fact, or you can just disable Java too.

    Know of another approach to installing Java in macOS 10.13 or macOS 10.12? Have any opinions or thoughts on the matter? Let us know in the comments!

    Читайте также:  Загружаю информацию установки mac os висит

    Источник

    Setting Up a MacBook Pro (Mac OS X High Sierra) for Java and Azure Cloud Development

    A bit of background here before we start, because to me using Mac is a very recent event.

    If you like this article, please clap for it! Click on the little hands icon to the left or bottom of this page.

    I had been a Linux user for over 15 years. Not a specialist/hacker kind of thing — just a user of Linux on the desktop (Ubuntu mostly; but also used Slackware and Fedora in the early days).

    Why am I using Mac now? Well… Let’s go from the beginning.

    In January of 2018 I left Oracle after about 5,5 years working in the Product Management organization doing Developer Relations for Java and Cloud — you can see me here at Oracle Code conference keynote in October 2017.

    At Oracle, by the time I joined the company in California in 2015(though I had been working for them since 2012 in Brazil), I was given only one laptop option: a Lenovo. Either I’d have Windows, or Linux. I stood with the Tux. Only in late 2017, Oracle started giving MacBooks for the engineering group by default — which is pretty cool.

    Left Oracle. Where was I heading to? Canada!

    What the heck? Why?

    Because I recently joined Microsoft’s Cloud Developer Advocacy group, to help the product engineering teams building and enhancing products and services to the taste and standards of the Java audience.

    Let’s talk quickly about US Visas…

    When I was transferred from Oracle Brazil to Oracle USA, I was given what is called the Intracompany Transferee Visa, aka L-1B type. This visa has a restriction: you are bond to that company until you get either a permantent resident card (green card), or you change status to an H1 type visa. Given my short stay in the US, neither processes completed in time.

    So, in my conversations with the Microsoft Immigration team, we found that the best solution would be to move to Canada, where I’d be close to Redmond — and in the same timezone.

    Just one minor detail: Canada also issues a Work Permit bond to the company you are going to work for, if that is the case during the visa application. My wife on the other hand received a Work Permit that allows her to work pretty much for any company and almost any area, but that thanks to the relationship with me. Visa approval arrived in 2 weeks. Passport stamps plus 2 weeks. Pretty fast in this case, but if you want you can apply without a «sponsor». It will likely take more time to be approved — if it gets approved (although in most cases, it does).

    Done already with the background story… let’s get to the business!

    Setting up a MacBook for Java and Azure Development

    At Microsoft I was given two options: either I’d get a Mac, or a Windows laptop. And given the similarities (in the terminal) between Mac and Linux, I chose the former. And as I said before, I do know how to exit vim.

    First of all, you will need a decent terminal. No developer should rely solely on mouse and windows, so a powerfull command-line interface is a must!

    This is one article I found that helped me set up my iTerm2. Walkthrough it.

    Источник

    How To Install Java On El Capitan, Sierra & High Sierra

    Macs do not include Java by default so you have to download and install Java on El Capitan, Sierra and High Sierra separately. One of the most common problems users have after upgrading to El Capitan, Sierra or High Sierra is an error message when trying to access certain websites or run apps that require Java and this tutorial helps fix that. There are also issues regarding legacy support for Java 6 in macOS 10.12 Sierra which we clarify at the end of the article. Note that we don’t recommend you install Java unless absolutely essential because it’s notoriously unstable and insecure and once installed, you can’t ever fully uninstall Java from a Mac. However, if you’re one of those people that has no choice because the website you need to access, application you want to use or the game you want to play requires it, follow these instructions.

    Читайте также:  Trying linux in windows

    How To Install Java On El Capitan, Sierra & High Sierra

    If you’ve upgraded to El Capitan,macos Sierra or High Sierra and keep receiving the error message pop up:

    To use the “java” command line tool you need to install a Java SDK

    It’s because an application you have installed or a website you’re trying to access requires Java to launch or work properly. If you’ve never installed Java on Mac, then you can simply download and install the latest version of Java from Oracle which is known as Java 8 but rather confusingly officially called Java 1.8 by Oracle.

    If you’re not sure whether Java is installed on your Mac, simply search for Terminal in Spotlight and type: java -version at the command prompt.

    If Java is on your Mac, you’ll see a message saying something like “Java (TM) Runtime Environment” in this case version 1.6 (or Java 6 as it is commonly known). If you find that you already have Java 1.6 installed, scroll down below “How to update Java 6 in El Capitan” as you also need to install a special update from Apple.

    Java Installation Problems in El Capitan, Sierra & High Sierra

    If you run into problems during the installation of Java, it’s because Apple has added an extra layer of security to Macs known as Rootless SIP. Java has such a bad rep on Macs that Apple has made it increasingly difficult to install it and other things that can potentially damage OS X. If your Mac is blocking the installation of Java, follow these instructions to disable rootless SIP and try again:

    • Restart your Mac when the screen turns black hold down ⌘R until the Apple logo appears.
    • Select the “Utilities” menu and then “Terminal”. In Terminal type: csrutil disable
    • Hit Return and then restart OS X. Your Mac will then restart with SIP disabled and you can try installing Java again.
    • To re-enable System Integrity Protection, follow exactly the same procedure except type: csrutil enable
    • Rootless SIP is then renabled on your Mac.

    Note: You will have to deactivate SIP when new updates for Java are released as Java will not update while SIP is enabled.

    How To Update Java 6 On Mac

    If you find that Java apps or applets will either refuse to run or open briefly before crashing giving you an error message such as “This application requires the legacy Java SE 6 runtime which is unavailable for this version of OS X”:

    or the Java applet crashes with an error message such as:

    com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.oneshot.0x10000004.OSXJavaLauncher[395]) Service exited with abnormal code: 1

    It’s because some applications, games and websites still only work with Java 6. Examples of people that may still need Java 6 are those trying to access some government sites, some online games and Android programmers that require Java 6 to develop Android apps on Mac. If you’re having problems running Java 6 on your Mac in El Capitan then you simply need to install Apple’s legacy Java 6 OS X 2015-001 update. This is a special update from Apple which allows the outdated Java 6 to safely run on your Mac. In the release notes for the Java 6 update, Apple states:

    Java for OS X 2015-001 installs the legacy Java 6 runtime for OS X 10.11 El Capitan, OS X 10.10 Yosemite, OS X 10.9 Mavericks, OS X 10.8 Mountain Lion, and OS X 10.7 Lion. This package is exclusively intended for support of legacy software and installs the same deprecated version of Java 6 included in the 2014-001 and 2013-005 releases.

    To install the update, you must quit any Java applications that are running and then simply download and double click on the Jave 6 update file and the update will automatically install. If you run into problems during installation, you’ll need to disable Rootless SIP protection in OS X (see above). Note that Java 6 does not officially work with OS X 10.12 Sierra although some users have had success with it so it may work and it seems to depend on the specific app you need it for.

    Читайте также:  What is bison linux

    Note: Do not get Java confused with JavaScript! JavaScript is an essential component for most browsers that enables it to display certain elements properly and is completely different to Java despite the confusingly similar name. Disabling JavaScript will mean many websites simply won’t work in your web browser anymore.

    Support For Java 6 In Sierra

    The bad news for those that need Java 6 on macOS 10.12 Sierra is that it is no longer officially supported on anything higher than OS X 10.11 El Capitan. Due to various security and support issues, last year Apple announced plans to discontinue any support for Java 6 in future versions of OS X:

    OS X v10.11 is the last major release of OS X that will support the previously deprecated Java 6 runtime and tools provided by Apple. Applications or features that depend upon Java 6 may not function properly or will not launch when Java 6 is removed. Developers should move to a newer version of Java as provided by Oracle.

    However the Apple link that Oracle refers users to has now been removed by Apple leaving some doubt as to whether Apple has had a change of heart regarding support for Java 6 on Sierra. Some Mac users are reporting that you can still install Java 6 on Sierra and it works for some apps but not for others. In the case of Cyberduck for example, it seems that the developer has updated the app to work with Java 6 in Sierra so it may well be down to individual developers whether they force their apps to work with it. Our advice is don’t rely using Java 6 on Sierra until Apple clarify whether it will be officially supported. Java 7 and 8 are officially supported in OS X 10.12 Sierra and if you don’t need Java 6, we highly recommend updating to Java 7 or 8 because Java is notoriously insecure and older versions are particularly vulnerable to attack and bugs.

    As stated in the introduction, if it’s not necessary to you, you’re better off not installing Java at all on your Mac as it’s an increasingly antiquated platform that often causes more problem’s than it’s worth. And you can never fully remove Java from a Mac although you can find instructions how to disable Java on your Mac here.

    If you have any other problems running Java in El Capitan, Sierra or High Sierra on your Mac, let us know in the comments below.

    About The Author

    MacHow2 is devoted to helping you get the most of of your Mac. We’re passionate about all things Mac whether it’s helping users with software recommendations or solving technical problems. If you’ve got any comments about this article, get involved by leaving a comment below. You can also contact us directly using the contact form at the top of the site. Please note that in the interests of transparency, MacHow2 may sometimes receive compensation from link clicks or vendors.

    11 Responses

    i have just installed java 6 and in my older version of photoshop( pre annual fee CS5.1) i am now having issues with moving or zooming on frames. It creates a tiling effect of repeated panels. Any ideas ?

    With the very latest version of High Sierra, it is impossible to install the latest jre6. Opening the .dmg prompts to delete it right away. Using disk-utility I can mount the disk, but the the .pkg won’t open. Rather frustrating. I even disabled the system integrity. That didn’t help.
    On my other mac, running El Capitan the .dmg and .pkg work fine.

    Leave a Reply Cancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Источник

    Оцените статью