JDK + SDK  
Author Message
Adrian Pach





PostPosted: 2006-3-7 19:44:00 Top

java-programmer, JDK + SDK Hi,

why i need JDK and JRE together. I don't understand it:

1. I can install JDK + JRE in a packet on my maschine. So i have two Folders
JDK1.5.0_06 and JRE1.5.0_06
2. only JDK
3. only JRE

If i install JDK so there is a folder in it with JDK1.5.0_06/jre/ there the
JRE ist include.

So why i must install jre separately? I want to that my browser must be use
this included jre in jdk !!!

There is the diffrent between?

thx a lot
AdrianP


 
Thomas Weidenfeller





PostPosted: 2006-3-7 20:32:00 Top

java-programmer >> JDK + SDK Adrian Pach wrote:
> why i need JDK and JRE together. I don't understand it:
>
> 1. I can install JDK + JRE in a packet on my maschine. So i have two Folders
> JDK1.5.0_06 and JRE1.5.0_06
> 2. only JDK
> 3. only JRE
>
> If i install JDK so there is a folder in it with JDK1.5.0_06/jre/ there the
> JRE ist include.
>
> So why i must install jre separately? I want to that my browser must be use
> this included jre in jdk !!!

a) There is no point in using multiple exclamation marks.

b) At some point the runtime in the JDK was different from the JRE, and
Sun decided to ship a "private" runtime as part of the JDK. The tools in
the JRE are (mostly) written in Java, and the "private" runtime in the
JDK ensures the JDK tools work (more or less) as desired. The private
runtime in the JDK does not register with the OS, it is therefore
"invisible".

Sun probably wants to keep it this way to ensure a JDK is always
executed with a matching runtime. One less point where users could mess
up things.

/Thomas


--
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/