Java Runtime Environment
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.
'CTRL-C' on 'Cygwin'
CTRL-C is not handled correctly by the JRE under Cygwin (Cygwin doesn't pass the signal to the JRE), i.e. the hooks added with
Runtime.addShutdownHook(…) are not called on CTRL-C. There are no known workaround.