Why is Java SE 6 Legacy required to open Intellij?
I currently deleted Apple Legacy Java SE6 on my macbook because I've already downloaded JRE8 on my machine and I think I no longer need the older version. After I deleted it, every time I opened Intellij it popped up a window and asked me to get Legacy Java runtime 6. In the meantime, Android Studio and Eclipse worked perfectly fine without popping up any window notifying me about the installing. So my questions are:
- Is there any way I could use jre8 instead of jre6 to run Intellij?
- Why does Intellij require me to install jre6 while Android Studio doesn't?
- What is the benefit to install Legacy Java runtime 6?
Solution 1:
Q1. No. Intellij deliberately requires jre6 because of bugs in Java 8 as described at :Why is Java SE 6 Legacy required to open Intellij?.
Q2. I assume that the Android Studio app has its own embedded Java and so does not depend on or use the version you have on your Mac. (This is the way people producing Java apps are going now, and I think it is the only way if you want to sell them on the Mac App store.)
Q3. The benefit of installing java 6 is the obvious one that you can run older java apps that either require it or were built using Apple's jar bundler which doesn't talk to Oracle's Java 8.
Solution 2:
Edit /Applications/<Product>.app/Contents/Info.plist
file, change JVMVersion from 1.6* to 1.8*
<key>JVMVersion</key>
<string>1.8*</string>