• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDK, JRE, JVM and Windows Installer

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 79475
379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27887
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Just let me do the talking. Ahem ... so ... you see ... we have this tiny ad...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic