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, because Oracle provides an installer for the JDK. Go to the 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. Open the.dmg Disk Image and run the installer. Open Terminal. 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: cd `ls -1d /Library/Java/JavaVirtualMachines/jdk1.8.jdk sort -rn -t -k 1.42 -k 2 head -1` sudo defaults write '`pwd`/Contents/Info.plist' JavaVM -dict-add 'JVMCapabilities' 'JNIBundledAppCommandLine' sudo chmod 0664 Contents/Info.plist sudo plutil -convert xml1 Contents/Info.plist 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.
Java SE Development Kit 8 Update 144 (1.8.0_144) Overview Installation of Java Java is a very famous computer programming language for the programmers that can be used to create games, projects, practice for different programs, create applet programs, swing etc. Java is mostly used programming language for which you need Java Development Kit (JDK).
Create a link to add backwards compatibility for some applications made for older Java versions: sudo mkdir -p Contents/Home/bundle/Libraries cd Contents/Home/bundle/Libraries sudo ln -s././jre/lib/server/libjvm.dylib libserver.dylib. Optional: If you’re actually using the JDK for software development, you may want to set the JAVAHOME environment variable. The recommended way is to use /usr/libexec/javahome program, so I recommend setting JAVAHOME in your.bashprofile like suggests: echo 'export JAVAHOME= `/usr/libexec/javahome `' /.bashprofile chmod u+x /.bashprofile This will get the latest installed Java’s home directory by default, but check out man javahome 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 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. If you’ve, 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: sudo mkdir -p /System/Library/Java/JavaVirtualMachines/1.6.0.jdk sudo mkdir -p /System/Library/Java/Support/Deploy.bundle Don’t forget to again after creating these directories.
I think the recommended way to ship Java applications is to bundle the JRE with the application. The JDK is intended for application developers, so it doesn’t make sense to automatically add the ability to launch Java applications when you install it for development. There are many applications that use Java unbeknownst to the user because it is bundled in the application, and does not require the user to install Java on their computer. There are positives and negatives to this, but I won’t get into that. The part where I create links is because some older apps referenced a Java library file at a specific location, which was fine for older versions, but was not the “proper” way of doing it.
When the specific path to the library changed, some older apps stopped working. Some apps that referenced Java “properly” still work without doing this step. Oracle increments the version number when there are potentially application-breaking changes. There is no guarantee that apps that run on Java 6 will run on Java 7, let alone Java 8. It is up to the application developer to update their code if they wish to use the latest version of Java. It may have been nice of Oracle to add those links, to increase backwards compatibility, but it is not their responsibility, and in my opinion, should not be including them.
Step 6 is user preference, and not something that should be done by the Java installer. The reason for the last note is essentially “tricking” some apps into using the installed Java (version 8 in my blog post) when they are trying to use Java 6. The apps are saying “I need Java 6 to work, because I can’t guarantee that I will work with newer versions of Java, so please install Java 6.” The Java installer should not be doing this at all, nor should it even be touching the System directory.
TL;DR: The issue is not with the Java installer, in my opinion.
Download Jdk 1.8 For Windows 10
Still trying to get Eclipse IDE to work and running into Incompatible JVM error. I followed the steps here: But unfortunately to no effect.
Running OSX 10.9.5 and uninstalled the out-of-the-box version of Mac. The new version of Java seems to show up in the System Preferences. Please see attached screen capture. I've even done some of the basics like restart my computer, etc. Maybe there are other modifications I need to make to other files. I'm comfortable with Terminal but new to Eclipse and Java.
Thanks in advance! I have had the same problem as noted above. I could not get Eclipse to install because of Java incompatibilities. The sequence I followed goes like this:.
Upgraded to MAC OS Sierra. Downloaded the Eclipse installer but was prompted that I needed to instal a legacy Java.
Installed Java 1.6. Was unable to install Eclipse and was prompted that I needed Java 1.7 or greater. Downloaded and installed Java 1.8.
Ran the terminal code 'java -version' // this will check your jre version. This showed returned Java 1.6 despite the fact that I had upgraded to 1.8.
The Java version listed in the Java control panel said 1.8. Tried multiple downloads of eclipse and Java and multiple restarts always with the same result. Visited the Oracle web page noted above: I could not find the above reference to 8u73 and 8u74 but I did find and option to download 1.8.012. It installed without difficulty, and then I was able to install Eclipse without difficulty. This took hours of my time. I hope this proves useful. Open up terminal and check what java version is currently set in your path variable.
You can do that by typing in your terminal java -version // this will check your jre version. Javac -version // this will check your compiler version If this shows incorrect java version but you have installed java 1.8 then you have to set path variable to the newer version of java. To do that do add the line: export JAVAHOME=/path/to/java/jdk1.x to /.bashprofile (same as /Users/username/.bashprofile) Then do this from the terminal to set the new variable source /.bashprofile Also what's your eclipse.ini set to? -Dosgi.requiredJavaVersion=1.7 EDIT: Please open up terminal and type find / -name 'java' // This should find all folder named java on your file system. Also how did you install java in the first place?