aspose file tools*
The moose likes Beginning Java and the fly likes JDK JRE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JDK JRE" Watch "JDK JRE" New topic


Manjeet.chandhok Singh

Joined: Aug 24, 2010
Posts: 1
hi all, I know that JDK include JRE and I also know that
JDK (Java Developmet Kit) is the pakage for develop java programs.
JRE (Java Runtimme Enviorment) is the pakage to run java programs.

But my question is that why...
does JRE apper in both JDK and standalone JRE when you install the
latest jdk.
and, can you somehow remove the standalone JRE (C:\java\jre1.5.0_09) (depends on versions)
and redirect everything to the one in JDK (C:\java\jdk1.5.0_09\jre) -
they both seam to have the same files...?
Rob Spoor

Joined: Oct 27, 2005
Posts: 19672

Could you please not use unnecessary colouring in the future? It makes it harder and/or more annoying to read. As a result people will simply not read it.

How To Ask Questions How To Answer Questions
Scott Gao

Joined: Aug 25, 2010
Posts: 1
Are you using Windows? I believe at some point during the JDK installation, the system will prompt you whether or not you need to install the JRE, then you can cancel it.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38412
Welcome to the Ranch, both of you

It may be easier simply to alter your PATH so it only includes the JDK. You will find the installation instructions ยง4 tell you about your PATH.
Consider Paul's rocket mass heater.
subject: JDK JRE