tamaformula.blogg.se

Command to check java version in linux
Command to check java version in linux




command to check java version in linux command to check java version in linux

To check where is the latest Java (JDK or JRE) you have installed in your system. Generally after installation Java file goes to the path /usr/java/jdk-xx-version/. I installed the jdk-1.7.0_21-fcs.i586 hence showing practical case to case (You can skip the step if you installed through tar ball) Click here (If you have installed with tar ball then again there is no problem) Now we will install new Java and set the java variablesĭownload the rpm file from Oracle website. How to check the java version which is currently set in linux system ?Īnswer: Run the below given command # java -version It might be showing you the same old version. How to set JAVA environment variables JAVA_HOME and PATH in LinuxĪfter installing new java (jdk or jre) or latest Java you may have usually find that the version of java is not exactly the same which you have installed.






Command to check java version in linux