This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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

JRE: do I need to set classpath of JRE?

Mary Smith

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"

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
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: JRE: do I need to set classpath of JRE?
It's not a secret anymore!