...
2. The Java download page opens.
...
Info | ||
---|---|---|
| ||
It is recommended to create a new directory to save the download bundle to, as the next step is to extract several directories and files into this directory. The directory can be anywhere you choose. |
...
Code Block |
---|
zcat jdk-6u25-solaris-i586.tar.Z | tar -xf - |
Wiki Markup |
This creates several directories (SUNWj6rt, SUNWj6dev, SUNWj6cfg, SUNWj6man, SUNWj6dmo, and SUNWj6jmp) plus a few files in the current directory.
...
Step 3. Install JDK
Run the pkgadd
command to install the packages.
Code Block |
---|
pkgadd -d . SUNWj6rt SUNWj6dev SUNWj6cfg SUNWj6man SUNWj6dmo |
Wiki Markup |
This command installs the JDK into /usr/jdk/jdk1.6.0
.
...
Verify the Java version by entering the following command:
Code Block |
---|
java -version |
Wiki Markup |
Excerpt | ||
---|---|---|
| ||
Instructions to install Java development kit on Solaris. |
...