• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

JDK, JRE, JVM and Windows Installer

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

Thanks
 
Marshal
Posts: 68066
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

Where can I get JDK from . . .

Try here.

2) When I install JDK, I guess I don't need to install JRE and JVM separately. . . .

Yes

3) When do I need to install JVM and JRE separately ? . . .

Never. In fact they have stopped supplying a separate JRE.
 
Bartender
Posts: 21731
148
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!