Java Development Kit (JDK) is the engine that runs everything from JDeveloper to the application server. The latest version of the JDK is JDK 7u25 at the time of writing, but if you find a newer version, don't hesitate to use it instead.
Download the latest JDK from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html.
You should download the latest JDK and it should work just fine, but you have to select the JDK suitable for your Operating System and its architecture
You will need an oracle account. This is also important when installing the Oracle Database and JDeveloper, so you should get one now if you don't already have one, and it's free too!
Depending on the operating system, the installation should be straightforward, as for each operating system, there should be an installer with it, for example, for Windows an exe installer, for Mac you will have a dmg, and an rpm for Linux
Change the JDK installation directory to be inside
JAVA_HOMEenvironment variable, and update the
PATHenvironment variable to look at the
binfolder inside our
jdk7_25directory. This will help you greatly if you use the Java command line often.
If you are using Windows, you should add the following environment variable:
You should change the
PATHenvironment variable to the following:
Alternatively, you can achieve the same result as previous by opening the command prompt without going to your environment variable settings and using the
Make sure you put
%JAVA_HOME%as we want the path to reference all the Java executable files such as java and javac
If you are using Mac or any other Nix-based system, you should edit the
.bash_profilefile to be the following:
export JAVA_HOME=$APPS_HOME/jdk/jdk7_25 export PATH=$JAVA_HOME/bin:$PATH
Notice that in Nix-based systems editing a
.bash_profileis little bit different as the separator is a colon and not a semicolon
Defining environment variables such as
JAVA_HOME and putting them inside the
PATH variable is crucial as we might need to start applications using the command line and these variables will become handy during such circumstances. Also, we will need this in order to start the installer of JDeveloper after installing the database.
Now that you have finished the installation of JDK, close any terminals (command prompts) opened and start installing the database.