The JRE and JDK are separate and can coexist on your system. Well, I did that and I have Version 8 Update71. Under the General tab in the Java Control Panel, the version isĪvailable through the About section. Now before feeling like telling me "google it", I have already googled it. Which version of JRE and JVM do I have and which is the latest one? However lately I am getting very confused and would appreciate a current response to my question. I have also programmed in Java, so not a total beginner. Java HotSpot(TM) 64-Bit Server VM (build 25.I am aware that there is the JRE and the JVM. Java(TM) SE Runtime Environment (build 1.8.0_91-b14) There are 5 programs which provide 'java'.Įnter to keep the current selection, or type selection number: thebtm]# java -version
Java 8 77 install#
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)Īnother side node is that if you already have Oracle Java installed and you download and install a newer java rpm, you have to update alternatives to point to the new version of java thebtm]# alternatives -config java Java(TM) SE Runtime Environment (build 1.8.0_77-b03) The Java command below would work as a validation that the Alternatives have been setup correctly. If using an RPM system machine, I used the steps in the link below for getting it to work. I have noticed with trying to keep Oracle Java installed over the openjdk that you have to make sure everything is linking correct and running the correct version of java. You may have to configure Alternatives to point to java, its explained in my link.
There are 2 programs which provide 'java'. *+ 1 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.86_64/bin/javacĮnter to keep the current selection, or type selection number: 2 There are 2 programs which provide 'javac'. I believe you only have one option (This sample shows jdk1.8.0_74 due to mine is not the latest 8u91): $ sudo alternatives -config javac Then use this two commands to choose the correct javac and java. You can also download the docs which the real link can be found here page, and unzip it (Assume your JDK has been installed at /usr/java/jdk1.8.0_91/): sudo unzip jdk-8u91-docs-all.zip -d /usr/java/jdk1.8.0_91/ #optional Click the JDK DOWNLOAD button will go to this page which shows the latest version number and its correct filename. The version number of 8u91 version above is keep updating, so you should always visits Oracle websites to find out the latest version. Sudo rpm -ivh jdk-8u91-linux-圆4-demos.rpm This is what you can do (Assume your system are 圆4): sudo rpm -ivh jdk-8u91-linux-圆4.rpm So, what I can advise is install the JDK again, which "Oracle JDK" is preferred over than "OpenJDK". Type -a: Return not found when symlink is broken orĪll of them will return not found if the input file doesn't exist. Type: Return found even non-executable, and return not found if Whereis: Still return found even symlink broken or non-executable. Please note that the symlink target OR non-symlink source file, both must be executable ( chmod +x to set it), otherwise type -a command will return not found even though file exist ( type will still return regardless of executable). I recommend you use type -a java to get the correct result. So if /usr/bin/java still exist, even though the symlink target is broken, it will still return java: /usr/bin/java. I would like to believe that it is not installed if so why the system