This question have certanly been posted before, but then agin...
What I know:
JDK (Java Developmet Kit) is the pakage for develop java programs.
JRE (Java Runtimme Enviorment) is the pakage to run java programs.
But why...
does JRE apper in both JDK and standalone when you install the
latest jdk-1_5_0_09-nb-5_0-win-ml.exe?
and, can you somehow remove the standalone JRE (C:\java\jre1.5.0_09)
and redirect everything to the one in JDK (C:\java\jdk1.5.0_09\jre) -
they both seam to have the same files...?
/Thoms
No Name - 28 Oct 2006 19:21 GMT
> But why...
> does JRE apper in both JDK and standalone when you install the
> latest jdk-1_5_0_09-nb-5_0-win-ml.exe?
Most tools in the JDK are written in Java, so they need a JRE for
execution. The JDK comes with a private JRE to make sure it always
matches the tools. Then you need a public JRE for the user, in a public
place you can rely on. On a real operating system this would be a
symbolic link. On GameOS the whole shebang needs to be copied instead.
Sundar - 30 Oct 2006 08:13 GMT
> This question have certanly been posted before, but then agin...
>
> What I know:
> JDK (Java Developmet Kit) is the pakage for develop java programs.
> JRE (Java Runtimme Enviorment) is the pakage to run java programs.
Your understanding is correct.
> But why...
> does JRE apper in both JDK and standalone when you install the
> latest jdk-1_5_0_09-nb-5_0-win-ml.exe?
> and, can you somehow remove the standalone JRE (C:\java\jre1.5.0_09)
> and redirect everything to the one in JDK (C:\java\jdk1.5.0_09\jre) -
> they both seam to have the same files...?
If you uninstall JDK the JRE will still be there. If both are in the
same package (C:\java\jdk1.5.0_09\jre) this might not be possible. And
also u can upgrade ur JRE to the latest version with the old JDK.
-Sundar