Home > Articles > Operating Systems, Server > Linux/UNIX/Open Source

  • Print
  • + Share This

Testing the Software Installation

Once the system has restarted, open a terminal window and type this command:

java –version

If your installation was successful, you should see a listing indicating that the installed JDK version is 1.6 as illustrated in Figure 3.

Figure 3

Figure 3 The new JDK is installed!

You can also run a command to determine the location of the java program:

which java

Try the above command, and you'll see that it displays the disk location of the associated program.

You can also verify that the environment settings were successfully applied by using the echo command, as illustrated in Figure 4.

Figure 4

Figure 4 Using the echo command

As you can see in Figure 4, the environment variables we added to the .profile file have been correctly added to the system.

  • + Share This
  • 🔖 Save To Your Account

Related Resources

There are currently no related titles. Please check back later.