This section is about programming for the JRE in C++ not in Java.
The JDK comprises the JRE, so no need to install it apart.
Download link : http://www.oracle.com/technetwork/java/javase/downloads/index.html. Choose JDK.
On 64 bits Windows, if you install both x64 and i585 version, the
java command is always the x64 one.
If working under Cygwin, you can create aliases to easily switch between x86 and i585 version.
The package to install is
System.loadLibrary(…)should not contain a directory separator. So, the library should be found in
java.library.path. The content of the
LD_LIBRARY_PATHis part of this properties.
Install the corresponding
/usr/libexec/java_homedisplays the JDK root path.