Where to download Hotspot JVM? Different from Oracle's JVM?
Asked Answered
I

1

6

I read a few posts about JVM at Stack Overflow and would like to download a binary copy of the Hotspot JVM, yet I am not able to find it on http://www.java.net.

Beside that, what is the difference between Hotspot JVM and JVMs found at Oracle

Is Oracle JVM good for a production website?

Intorsion answered 19/2, 2016 at 15:15 Comment(4)
HotSpot JVM is a part of both Oracle JDK and OpenJDK. See also #16568753Roxannaroxanne
apangin, are you saying that when I download Oracle's JVM from the above I gave, I get Hotspot automatically? Thanks!Intorsion
You download JDK, not JVM, but yes - it has HotSpot JVM inside.Roxannaroxanne
apangin, thanks for your follow-up! Voted up your responses.Intorsion
B
8

Overview:

This SO question may clear up your questions regarding "What is JVM, Hotspot and OpenJDK".

Basically:

JVM means Java Virtual Machine. The JVM is the underlying runtime that executes java bytecode. There are multiple different implementations out there, all implementing the Java Virtual Machine Specification

HotSpot is the most used implementation of the JVM concept. It is used in both, Oracle JDK and OpenJDK. Oracle's JDK can be downloaded on oracle's website, currently http://www.oracle.com/technetwork/java/javase/downloads/index.html. This is "the typical JVM you will find on a normal user's windows machine".

OpenJDK is the open source project maintaining and impelmenting the HotSpot JVM, but also many other projects beside the JVM such as Graal or VisualVM. On Ubuntu for example you can install this OpenJDK (current version 8) by running sudo apt-get install openjdk8.

Conclusion:

While this explaination is not really perfect, it may be good enough to understand that there is no big difference between Oracle JDK and OpenJDK. If you are interested in a little more info on this, have a look at the SO question Differences between Oracle JDK and Open JDK


JDK / JVM sourcecode:

If you are interested in the source code, OpenJDK is the way to go. Here you can find the current OpenJDK 8 (which includes the HotSpot JVM). Its source code can be found here. It also states how to download the source code:

The jdk8u-dev forest for ongoing development can be cloned using this command: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u-dev;cd jdk8u-dev;sh get_source.sh .

The corresponding master forest jdk8u can be cloned using this command: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u;cd jdk8u;sh get_source.sh .

In addition, the source code for the last release, 8u66, is available by cloning the 8u master forest : http://hg.openjdk.java.net/jdk8u/jdk8u and using the 'jdk8u66-b17' mercurial tag.

Bethezel answered 19/2, 2016 at 19:4 Comment(2)
Markus, thanks for your detailed answer. It is crystal-clear. I would like to have a binary copy of OpenJDK 8 to run a Spring web application on Windows Server 2012 R2 Standard. I am not able to find it at openjdk.java.net/projects/jdk8u you mentioned. Where to get it? Many thanks!Intorsion
As stated on openjdk.java.net: If you came here looking for Oracle JDK 8 product binaries for Solaris, Linux, Mac OS X, or Windows, which are based largely on the same code, you can download them from java.oracle.com.. So even OpenJDK states to go with the oracle downloads on oracle.com/technetwork/java/javase/downloads/index.html if you are looking for Windows binaries as I wrote in my answer. :) I'll be happy if you accept this as answer if I could help you :)Bethezel

© 2022 - 2024 — McMap. All rights reserved.