• 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 installation

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I recently installed java5 and could see that there are two folders created under my Java folder named,"jdk1.5.0_11" and "jre1.5.0_11".
"jdk1.5.0_11" for compiling the java code and "jre1.5.0_11" for running the java program

I found that under the folder"jdk1.5.0_11" there is a folder named "jre".

I want to know how this "jre" folder is different from "jre1.5.0_11", if any.
If there is no difference between those two, then why there are two different folders created at two different places for Java Run time Environment.

Please resolve this confusion.
 
Ranch Hand
Posts: 56
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Anish,

in general there should be no difference between the JRE inside a JDK installation and a standalone JRE with the same version number. If you have an installed JDK, you don't need an additional JRE installation. If a program you use needs a path to a JRE installation you can point it to the JRE inside the JDK installation.

Regards,
Ramon
 
anish jain
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ramon

As you said that we don't need an additional JRE installation if we have installed JDK, then while installing Java why the installer asks for JRE installation as a separate entity which is outside JDK?

Is there any kind of difference(any scenario where one is preferred over another) between JRE inside JDK and JRE installed outside JDK?
 
Ramon Anger
Ranch Hand
Posts: 56
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Anish,

you want to have different JRE versions on your machine for instance to
- check compatibility concerns for the software your are writing or
- ansure that a certain software that depends on a concrete JRE version still works while you develop with another Java version.

There are certainly a lot more reasons that don't come in my mind right now.

Regards,
Ramon
 
Be reasonable. You can't destroy everything. Where would you sit? How would you read a 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