Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDK JRE

 
Manjeet.chandhok Singh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20526
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Scott Gao
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48910
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic