This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • Setup JDK

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Execute EXE-File
  • Wizard:
    • Accept License Agreement
    • Install all components (Java DB not needed, but is only 25 MB...)
    • Target directories (defaults, don't change anything):
      • Development Tools: C:\Program Files\Java\jdk1.6.0_13\
      • Demos and Samples: C:\Program Files\Java\jdk1.6.0_13\
      • Source Code: C:\Program Files\Java\jdk1.6.0_13\
      • Public JRE: C:\Program Files\Java\jre6\
      • Java DB: C:\Program Files\Sun\JavaDB\
  • After installation a popup appears, which wants you to register. You don't need to do this.

Ubuntu

  • Execute Synaptic package manager
  • Install "sun-java6-jdk"
  • Agree to license shown in dialog

Configuration

  • Add JAVA_HOME variable to your environment:

...

  • Start - Settings - Control Panel - System - Advanced - Environment Variables
  • System variables - New: JAVA_HOME = C:\Program Files\Java\jdk1.6.0_13

Ubuntu:

Code Block
titleCommand Prompt
borderStylesolid

# nano /etc/environment
...
JAVA_HOME="/usr/lib/jvm/java-6-sun/"
...
# source /etc/environment

Test

Windows:

  • Open a new command prompt window (Start - Programs - Accessoires - Command Prompt)
Code Block
titleCommand Prompt
borderStylesolid
C:\>java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)
C:\>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_13

Ubuntu:

  • Open a new terminal
Code Block
titleCommand Prompt
borderStylesolid

$ java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)
$ echo $JAVA_HOME
/usr/lib/jvm/java-6-sun/