Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / October 2006

Tip: Looking for answers? Try searching our database.

JDK vs JRE

Thread view: 
thomas_elmstrom@msn.com - 28 Oct 2006 15:21 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.

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.