speeddownloadpr.blogg.se

How to check java version in linux
How to check java version in linux








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.

how to check java version in linux

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










How to check java version in linux