As WSO2 AS is a Java application, you can install it on the PC with Java Development Kit. The the environment variables must be set as well.
Note
See Application Server Installation Prerequisites for the list of all applications necessary to install and work with WSO2 AS.
Follow the instructions below to install Java Development Kit on Solaris. This is the recommended method for installing Java on Solaris, as it allows all users on your system to access Java.
Establish a SSH connection to the Linux machine or log in on the text Linux console. You should either log in as root or obtain root permissions after login via su
or sudo
command.
Step 1. Download Java Development Kit (JDK) from the Official Site
1. Open a Web browser and access the following URL:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
2. The Java download page opens.
Tip
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.
Step 2. Extract the Contents
Extract the contents of the compressed TAR file:
zcat jdk-6u25-solaris-i586.tar.Z | tar -xf -
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.
pkgadd -d . SUNWj6rt SUNWj6dev SUNWj6cfg SUNWj6man SUNWj6dmo
This command installs the JDK into /usr/jdk/jdk1.6.0
.
Step 4. Check Installation
Verify the Java version by entering the following command:
java -version