wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes JRE: do I need to set classpath of JRE? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JRE: do I need to set classpath of JRE?" Watch "JRE: do I need to set classpath of JRE?" New topic
Author

JRE: do I need to set classpath of JRE?

Mary Smith
Greenhorn

Joined: Aug 16, 2001
Posts: 4
hi everyone,
I wonder if I need to set a classpath for JRE, like JDK1.2.2 do?
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Yes. When you set your classpath for the jdk, you were actually pointing it at THAT set of classes.
If you now want to use a DIFFERENT set of classes (perhaps a different version), you need to download it and change your classpath to point at THAT one.
Or, of course, when you fire up your application, if you have a bat file you can point the classpath at the desired JRE (the jar files in the JRE) just before invoking the application itself.
[This message has been edited by Cindy Glass (edited August 17, 2001).]


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JRE: do I need to set classpath of JRE?