12.1 Installing the JDK for JBoss

You must download and install Oracle JDK 7.0 update 21 or later updates to 7.0 versions from http://www.oracle.com/technetwork/java/javase/downloads/index.html

Create or set the JAVA_HOME environment variable to point to the location where the JDK is installed.

12.1.1 Set the JAVA_HOME environment variable (Windows)

  1. Select Start > Control Panel > System .

  2. Click the Advanced tab.

  3. Click Environment Variables and, under System Variables, click New .

  4. In the New System Variable box, type JAVA_HOME as the variable name and enter the directory where you installed the JDK. This directory is the directory that contains the /bin subdirectory. For example, type the following path:

    C:\Program Files\Java\jdk1.7.0_21

12.1.2 Set the PATH environment variable (Windows)

  1. Select Start > Control Panel > System .

  2. Click the Advanced tab and click Environment Variables .

  3. In the System Variables area, select the PATH variable and then click Edit .

  4. Append the following text to the beginning of the variable value:

%JAVA_HOME%\bin;

12.1.3 Set the JAVA_HOME environment (Linux and Solaris)

  • It is recommended that you set the JAVA_HOME variable for Bourne and Bash as shown in the following example:

    JAVA_HOME=/usr/java 
    export JAVA_HOME

12.1.4 Set the PATH environment variable (Linux and Solaris)

  • Set the PATH variable for Bourne and Bash as shown in the following example:

    PATH=$JAVA_HOME/bin:$PATH 
    export PATH

12.1.5 Verify JAVA_HOME environment variable setting (Windows, Linux, or Solaris)

(Optional) Open a command prompt and run the following command:

java -version

The command returns the Java version installed on your system.

// Ethnio survey code removed