Java on linux

Posted on Updated on

Check Java on Linux

Open a Terminal Window and run

java -version

This should return something like

Java(TM) 2 Runtime Environment, Standard Edition (build 1.6)

If the build number is less than 1.6 you will need to install a later version of Java. If it returns

-bash: java: comand not found

This means that either it is not installed or you havent set up your paths properly check by looking at the installed program list, or type

whereis java

if it finds java installed on your computer add it to your path i.e. whereis java returns


you should add (Adding java path to system path it we can execute java any location of OS)

export PATH=$PATH:/usr/local/java/j2sdk-1.6.0/bin


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s