java-1.7. What is the difference between 0-openjdk-i386 and java-7-openjdk-i386
When I install NetBeans, it gives me the option to choose the Java environment. I have three options, Oracle Java and these two (java-1.7.0-openjdk-i386 and java-7-openjdk-i386) What's the difference between the two? If it's Ubuntu
Solution
The two openjdks are the same However, openjdk is slightly different from Oracle JDK Read this post for more information
The reason why you get two options for openjdk is that you have two installed copies of openjdk (or two different references to the same directory on the system)
For further investigation, try using LS - LH / usr / lib / JVM/ Usr / lib / JVM is usually the directory where Java is installed Check whether one of them is a symbolic link In addition, check the location of the two jdks of NetBeans to see if there are two versions or Java references on the system
For example, this is the output of LS - LH on my system:
ls -lh total 24K lrwxrwxrwx 1 root root 26 Sep 10 13:41 default-java -> /usr/lib/jvm/java-7-oracle lrwxrwxrwx 1 root root 18 Mar 13 2012 java-1.5.0-gcj -> java-1.5.0-gcj-4.6 drwxr-xr-x 7 root root 4.0K Aug 22 2012 java-1.5.0-gcj-4.6 lrwxrwxrwx 1 root root 19 Jun 26 2012 java-1.6.0-openjdk-i386 -> java-6-openjdk-i386 drwxr-xr-x 3 root root 4.0K Feb 15 10:52 java-6-openjdk-common drwxr-xr-x 7 root root 4.0K Feb 15 10:52 java-6-openjdk-i386 drwxr-xr-x 8 ankit ankit 4.0K Jun 6 2012 java-6-sun drwxr-xr-x 5 root root 4.0K Aug 22 2012 java-7-openjdk-i386 drwxr-xr-x 8 root root 4.0K Feb 20 10:40 java-7-oracle lrwxrwxrwx 1 root root 12 Mar 13 2012 java-gcj -> java-gcj-4.6 lrwxrwxrwx 1 root root 18 Apr 16 2012 java-gcj-4.6 -> java-1.5.0-gcj-4.6
As you can see, java-1.6 0-openjdk-i386 is just a symbolic link / reference to another directory named java-6-openjdk-i386