If you have not installed the JDK software or if JAVA_HOME is not set, the GlassFish ESB installation will not be successful. The following tasks provide the information you need to install the JDK software and set JAVA_HOME on a UNIX or Windows system. To find out which JDK versions are supported for the operating system you are using, see JDK and JAVA_HOME in Planning a GlassFish ESB Installation.
Caution - The GlassFish ESB Installer does not support the 64-bit version of JDK 1.6.0_04 release on Solaris SPARC or AMD 64-bit environments.
Installing JDK Software and Setting JAVA_HOME on UNIX Systems
1. Install the JDK software
- Open http://java.sun.com/javase/downloads/index.jsp
- Select the appropriate JDK version and click Download.
- The JDK software is installed on your computer, for example, in /usr/jdk/jdk1.6.0_02. You can change this location.
2. Set JAVA_HOME
Korn and bash shells:
export JAVA_HOME=jdk-install-dir
export PATH=$JAVA_HOME/bin:$PATH
Bourne shell:
JAVA_HOME=jdk-install-dir
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
C shell:
setenv JAVA_HOME jdk-install-dir
setenv PATH $JAVA_HOME/bin:$PATH
export PATH=$JAVA_HOME/bin:$PATH
3. Change the permissions to allow you to run the GlassFish ESB Installer.
chmod 755 JavaCAPS.bin
Installing JDK Software and JAVA_HOME Settings on Windows Systems
1. Install the JDK software
- Open http://java.sun.com/javase/downloads/index.jsp
- Select the appropriate JDK version and click Download.
- The JDK software is installed on your computer, for example, in C:\Program Files\Java\jdk1.6.0_02. You can change this location.
2. Set JAVA_HOME
- Right-click My Computer and select Properties.
- On the Advanced tab, select Environment Variables, then edit JAVA_HOME to indicate where the JDK software is located, for example, C:\Program Files\Java\jdk1.6.0_02.