Java For El Capitan

1
Capitan

How to fix this application requires the legacy Java SE 6 runtime which is unavailable for this version of the OS XIf anyone is using the beta version of El. Learn how to re-enable the Apple-provided Java SE 6 Java SE 6 web plug-in and Web Start features in OS X Lion and later. If, after installing Java for OS X 2014-001 and the latest version of Java 7 from Oracle, you want to disable Java 7 and re-enable the Apple-provided Java SE 6 web plug-in and Web Start functionality, follow these steps. Dreamweaver not working on El Capitan!Java SE 6 not working and you can not downgrade?CS6 Not working, can't install Java SE 6 El Capitan?Not a problem.CS6 N. Java for OS X 2015-001 javaforosx.dmg watch Java for OS X 2015- 001 Java for OSX installs the 6 runtime as X OSX Yosemite, OSX 10.9 Mavericks, OS X 10.8 Mountain Lion. And OSX 10.7 Lion. This package s intended support of legacy software and the same deprecated version of Java 6 included in the 2014-001 and releases.

How do you downgrade Java version on MacOSX El Capitan? Right now when I run java -version I get:

Java for mac el capitan

java version '9.0.1' Java(TM) SE Runtime Environment (build 9.0.1+11) Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)

I need to have it say:

java version '1.8.0_25' Java(TM) SE Runtime Environment (build 9.0.1+11) Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)

Java For El Capitan

So I can run a specific npm java based package.

I tried following instructions on Java website for uninstall/re-install with no luck. They suggest to run these 3 commands:

Doing this seems to do nothing. When I run java -version I still get the same result.

I watched this video But I cannot find the JavaAppletPlugin.plugin referenced in video.

What am I doing wrong? How do you change Java version on El Capitan Mac OS?

1 answers

2

Look at SDKMAN - http://sdkman.io/

You install it, then do sdk list java

You can install any or all of these, and select whichever one you want to use and set a default, as well:

See the docs here:

My previous post about installing Java on OS X received quite a bit of traffic, and I felt that some of the information was outdated, and it became a little unclear after all the edits, so I’ve endeavoured to create a much easier to understand set of instructions.

The instructions for installing the JDK (Java Development Kit) are a subset of the instructions for installing just the JRE, because Oracle provides an installer for the JDK.

  1. Go to the Oracle Java downloads page and download the JDK installer. You should end up with a file named something similar to jdk-8u60-macosx-x64.dmg, but perhaps a newer version.
  2. Open the .dmg Disk Image and run the installer.
  3. Open Terminal
  4. Edit the JDK’s newly installed Info.plist file to enable the included JRE to be used from the the command line, and from bundled applications:

    The third line fixes a permissions issue create by using defaults write. The fourth line is not required, but makes the file more user-friendly if you open it again in a text editor.

  5. Create a link to add backwards compatibility for some applications made for older Java versions:
  6. Optional: If you’re actually using the JDK for software development, you may want to set the JAVA_HOME environment variable. The recommended way is to use /usr/libexec/java_home program, so I recommend setting JAVA_HOME in your .bash_profile like Jared suggests:

    This will get the latest installed Java’s home directory by default, but check out man java_home for ways to easily get other Java home directories.

You should be done now, so try and open the application. If it does not work, some applications require legacy Java 6 to be installed. You can have it installed without actually using it, however, it’s possible to trick the applications into thinking legacy Java 6 is installed, without actually doing so.

If you’re running El Capitan, this is actually a little difficult now, because Apple added SIP (System Integrity Protection) to OS X. I have written a post explaining how to disable and enable SIP.

Java For Mac El Capitan

If you’ve disabled SIP, or are not running El Capitan yet, you can trick some applications into thinking legacy Java 6 is installed by creating two folders with the following commands in Terminal:

Java For Os X El Capitan Download

Don’t forget to enable SIP again after creating these directories.