This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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: 19649
    
  18

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: 37926
    
  22
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.
 
wood burning stoves
 
subject: JDK JRE
 
Similar Threads
How to install JAVA to my Win98?
JDK and JRE installation
JVM and JRE
How to set a class path?
Command Line from a jar