Installing Java SE SDK

  • Download appropriate 32-bit or 64-bit Java SE SK from http://www.oracle.com/technetwork/java/javase/downloads/index.html
  • Run executable, install using default options
    • You can use a non-default installation directory if desired
  • Windows: Control Panel → System → Advanced → Environment Variables → System Variables
    1. Set JAVA_HOME to Java SE SDK location
      1. e.g., C:\Program Files\Java\jdk1.7.0_45.jdk
    2. Add %JAVA_HOME%\bin to path
      1. In this example, was added to beginning of path
  • Linux/Mac:
    1. Add JAVA_HOME as an environment variable to the shell environment.
      1. bash/linux: export JAVA_HOME=/path/to/jdk
      2. bash/mac: export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
    2. Add $JAVA_HOME/bin to PATH
      1. bash: export PATH=$PATH:$JAVA_HOME/bin