OOPortal OOPortal


Structured Programming   «Prev  Next»
Installing the Java 2 Software Development Kit
Install Java SDK (Unix)
Objective: Install the Java 2 SDK.
Scoring
This exercise is not scored. It's an opportunity for you to check your understanding of the material covered in the preceding lesson. When you're finished, click the Submit button to receive credit for having completed it.
Background/overview
In this exercise you will download and install the Java 2 SDK, Standard Edition from Sun's Java 2 Platform Web page. If you've never installed software before this task may seem daunting, but it's really just a few simple steps. A description of the steps you will need to take is provided below.

Instructions
  1. Download the Java 2 SDK, Standard Edition for
    1. Solaris or
    2. for Linux
Make sure you keep track of where you save the download file.
  1. Follow the
    1. Solaris installation instructions or
    2. Linux installation instructions

  2. To confirm that your installation is successful, change your current directory to your progfun directory and issue the command: java -version

You should see a message indicating which version of Java you've installed.
If you receive the error:
java: Command not found

then it's likely that your PATH is not set correctly. You can issue the command:
echo $PATH

to see how your PATH environment variable is currently set. Double check to make sure that your PATH includes the bin directory relative to your SDK installation directory. For example, if you installed the Java 2 SDK in the directory /usr/j2se, then your PATH should include the directory /usr/j2se/bin.
If you're still having difficulty, please contact your tutor, and in your message include your SDK installation directory and your current PATH.