Friday, April 22, 2011

How to find the all the installed java bin


Share at Facebook

On your linux pc, it can happen that you are having multiple Java installed. By default, when you are installing linux, a distribution of java already installed. Now, if you download another java binary, and install, it will create new directory. So you'll have another Java.

Also, there are other software like Oracle, and packages of Oracle come up with their own Java. For example, if you install those software on your Pc, you'll find another Java is installed for those. So, you are dealing with another java.

Sometime you may need to specify the exact Java(when all are different version). That case you can use the linux's locate command to find all the java bin directory.


locate '/bin/java'


This command will display you all the directories consist with '/bin/java'. So from that list, you can easily identify all the Java bins. Now you can pick your one.




No comments: