• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDK/JRE installation  RSS feed

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • 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
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!