A Hacker's Journey: from Cook to Chef

14 Things you need to know when you install JVM in your deployment environment

I found the following information and quoted here from the references online:

While Oracle JDK (earlier Sun JDK) is under the Binary Code License (earlier Sun License), OpenJDK is under GPL with a linking exception. From JDK version 7, Oracle has planned to support OpenJDK and withdraw the Operating System Distributor License for Java. This has resulted in a withdrawal of Oracle JDK from the repositories of Linux distributions.

Both Oracle JDK and OpenJDK are built from the same sources, and linking to external libraries happens in runtime. There is a logic which checks if JDK is running in "OpenJDK" mode or "Oracle JDK" mode, and, depending on that, loads either FreeType or T2K (see sun.font.FontScaler.java). An interesting thing is how JDK determines in runtime if it is OpenJDK or Oracle JDK. It checks if there is a file for Lucida font in JRE. Sun have licensed Lucida font for distribution with JRE and made this font default. This font is absent from OpenJDK distribution. you can setup fonts in fontconfig.properties.

OpenJDK will give you new features faster, Sun JDK should give you more stability. Oracle JDK 7 is built on openjdk7 code, except some additional features, which are not included in Java specification.

CentOS/Apache/MySQL/Tomcat stack is a very well tested set of packages in the RHEL ecosystem. This also applies to Ubuntu ecosystem now they are shipping OpenJDK.

This, along with the iptables service on centOS, makes me feel more confident about using centOS for production deployment platform.

You may want to know how to install JVM on centOS. You can find the summary below: