If you compiled for Java 1.6, you need at least OpenJDK 1.6. There are rare cases where Hotspot and OpenJDK are different, but since Hotspot is based on OpenJDK, you will most likely see minor differences in build versions.
Both JVMs comply with the JLS specification, and IMHO are practically reference versions. OpenJDK is an open standard, and HotSpot is widely used as a commercial standard. Issues are almost the same.
You can install the same version of Hotspot on Ubuntu if it is really dangerous.
source share