- Many Platforms Make Light Work
- Linux: Where to Place Your Software
- Download a Copy of Your Required Linux Distribution
- Getting any Updates for Your Linux System
- Setting the Linux Date and Time
- Getting Out of Linux Back to Windows
- Installing a Desktop GUI on Your Linux System
- Downloading and Installing the Sun JDK
- Modifying the .profile File
- Testing the Software Installation
- Caution: Modifying the notroot Configuration
- Shutting Down Your Linux System
- Conclusion
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 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 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.