GeeCON Prague 2014*
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


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JDK JRE" Watch "JDK JRE" New topic
Author

JDK JRE

Manjeet.chandhok Singh
Greenhorn

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
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Scott Gao
Greenhorn

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
Sheriff

Joined: Oct 13, 2005
Posts: 39044
    
  23
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JDK JRE