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 ONE QUESTION! 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 "ONE QUESTION!" Watch "ONE QUESTION!" New topic


Robert Bonslater

Joined: Jan 30, 2005
Posts: 28
When downloading and installing JDK 5.0, it seems that the jdk file and jre file are separate. What is the standard directory location these two should be installed? Should they be in separate locations? I also noticed a jre folder already in the jdk file. I that the java runtime that is used, or is the other folder that is used?
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
The JDK includes a JRE, but the JRE is also available on its own for client installations that don't need to compile Java code. If you're using the JDK, install it by itself and it will use the JRE included in it.
Robert Bonslater

Joined: Jan 30, 2005
Posts: 28
Thanks David,

but how does this work exactly. How does this separate jre function with the client.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
If the client doesn't need the compiler (and why should he) he can install just the standalone JRE and have a smaller footprint on his computers (as well as a smaller download).

It is sorta covered in the JavaRanch Style Guide.
subject: ONE QUESTION!
Similar Threads
"cannot resolve symbol" error when compiling...
No LoginModules configured
two jre folder
problem starting Tomcat5.5 from command prompt
rotating custom button, what paint method to ovveride