I want to install Java on my laptop. I need JDK.
1) WHen I visit Oracle website to download, I see Windows Installer. Is Windows Installer same as JDK or is it a tool to help install JDK ? If so, do I need to download JDK and Windows Installer both ? Where can I get JDK from, because on Oracle website I only see Windows Installer.
2) When I install JDK, I guess I don't need to install JRE and JVM separately. Everything gets installed with JDK.
3) When do I need to install JVM and JRE separately ?
jignesh soni wrote:. . . Is Windows Installer same as JDK or is it a tool to help install JDK ?
A tool. But that is probably irrelevant because they have started delivering the JDK 14 as a .zip. Try simply unzippping it into some location that you can add to out PATH/JAVA_HOME and see what happens.
If so, do I need to download JDK and Windows Installer both ?
No; it comes with all the code required for the JDK installation. That is why it is nearly 200MB on disc.
The official format for distributing a JDK or JRE has always been as a ZIP file. You can download the ZIP file that has been created for whichever particular OS and CPU that you are using, unzip it and go immediately without any further setup.
However, as a convenience, Sun/Oracle has long also included versions of their VMs as OS packages such as Windows Installer and Red Hat Linux RPM. The packages are not essential, but they do make management a bit easier. They register the JDK/JVM in the target machine's master package database and may set up some additional conveniences. For example, the RPM installer installs Java in a version-specific directory under /usr/java and will set the alias /usr/java/latest to refer to it, if it's the most recent version. Windows Installer sets some registry components, although I don't know the details.
It doesn't actually matter whether you install Java straight from ZIP or use a package installer, but since packages integrate more closely into the target OS environment, they are generally the better option to use.
Got idle CPU cycles? Join the war on COVID-19 by donating them to find the coronavirus' weak spots. folding@home Runs in the background. https://foldingathome.org
Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes: