Java El 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. Jun 09, 2015 Hi guys, I noticed I was getting a lot of traffic, so I updated my post for the latest version of Java, and added a note for El Capitan's Rootless mode down the bottom. I think it would be better to recommend disabling Rootless mode and to restart manually. Step to step guide how to use 32bit version of Java in Eclipse 0 I can't run Eclipse on Macbook on Yosemite: 'Version 1.6.065 of the JVM is not suitable for this product.'

Question or issue on macOS:

I have a clean install of El Capitan. I have PHPStorm installed on my Macbook Air. When I try to run the application, I get an error that says PHP storm can’t be opened because it requires legacy Java SE 6. I’ve attached an image of the error below.

I had the same problem when I installed Yosemite but I was able to install the legacy java fix (Java for OS X 2014-001) from Apple’s website. When I try installing that same java fix I get the following Error:
Java for OS X can’t be installed on this disk. A newer version of this package is already installed

Any thoughts and help will be greatly appreciated!
Thanks

How to solve this problem?

Solution no. 1:

Capitan

Download Java 6 for El Capitan:

Java download for mac el capitan

Java for OS X 2015-001 Beta

Solution no. 2:

I’ve used Homebrew to install JDK 1.6.0_65:

Solution no. 3:

If you have a problem with Java version on OsX Yosemite or El Capitain, you should download bundled Webstorm (or any other IDE from Jetbrains). It’s working, I’ve tried it by myself.

Java

And yes, this is not a programming related question, but it’s an IDE for programming and when you come to work at morning and you can’t code — that’s problem — and you don’t care if it’s related 😉

Solution no. 4:

i changed version to 1.8 here in below instructions and PhpStorm is now working for me.
At the moment all our products require Apple JDK 1.6 to be installed in order to run on Mac. JDK 1.7 from Oracle is not officially supported yet and has known problems that stop us from using it by default. Oracle JDK 1.7.0_40 has added support for Retina and works much better than previous versions on Mac. You are welcome to give it a try in case you have any problems with Apple JDK.

To force running under JDK 1.7 edit /Applications/.app/Contents/Info.plist file, change JVMVersion from 1.6* to 1.7* :

Java For Mac El Capitan

JVMVersion
1.7*

Solution no. 5:

  1. Open Terminal.app and write sudo nvram boot-args='rootless=0' + return
  2. Reboot
  3. Install Java from https://support.apple.com/kb/dl1572?locale=en_US

This will install Java 6, 7 and 8. Enjoy!

Hope this helps!

1

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

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)

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.

Java For El Capitan

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/

Capitan

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: