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 version vs JRE version 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 version vs JRE version" Watch "JDK version vs JRE version" New topic

JDK version vs JRE version

Ravi Gupta
Ranch Hand

Joined: Jul 15, 2006
Posts: 38
Hi everyone. I am working on J2SE 5. I have installed JDK (with included JRE) 1.5 update 15. Now i had a previously installed version of JRE 1.6.6. Which essentially means that i have two JREs installed. My question is - can i keep the latest JRE (i.e. 1.6) with JDK 1.5? I want to remove the version of JRE that came with JDK. Will the programs run correctly under JDK 1.5 + JRE 1.6?

help your PC help you best
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37897
If you compile them with JDK1.5 they ought to run happily with JRE1.6. You would do well to go through your PATH environment variable; the computer will pick whichever Java runtime appears first in it. As far as I know, yes, you can have several versions of Java.
It is sorta covered in the JavaRanch Style Guide.
subject: JDK version vs JRE version
Similar Threads
IS 1.6 JRE Required
Need some Guidance in using Java 1.6 with ANT
Can we have jdk6 on jre5?
JDK , JRE Update