How To Get Java Version Linux
Bash 4 1 java version openjdk version 1 8 0 191 openjdk.
How to get java version linux. You ll see several options listed here. If java is installedon your system you see a java installedresponse. If java is not installedon your system or the version of java isearlier than 1 6 use yastto install a compatibleversion. Java on rpm based linux platforms 32 bit rpm based linux platforms such as red hat and suse use a rpm binary file rpm in the system location.
To check which version of java isinstalled follow this procedure. It s in the middle of the page. Open the java for linux download page. If java is installed on your machine then you will see openjdk.
We can see that the java implementation is openjdk which is an open version of java for linux distributions. Download the package that best suits your needs. Java is now installed. The latest version of java is version 8 but.
You must be root to perform this installation. Openjdk version 1 8 0 131 is the current version of java. Open a linux commandprompt. Setting your java version with alternatives.
Check the version number in the message. Note the file s name. Some applications are developed for a specific version of java and don t work with any other version. Installing on rpm linux 1.
Enter the command java version as shown below. Open a linux command prompt. Doing so will prompt the java for rpm installation file to download. Enter the command java version.
Enter the command java version. If java is not installed on your system or the version of java is earlier than 1 6 use the linux yellowdog update modified yum utility to install a compatible version. If java version is installed on your system you see a java installed response. Steps to check which version of java installed on your machine step 1.
Check the version number in the message. Login to linux terminal using putty.