File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes JRE and java program distribution/please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JRE and java program distribution/please help" Watch "JRE and java program distribution/please help" New topic

JRE and java program distribution/please help

Robin Richardson
Ranch Hand

Joined: Mar 01, 2001
Posts: 37
I have a program that I need to send to others in the company where I work. I've heard that the only way someone else can run the program is by having JRE installed on their machines, and that I would have to add that with the program.
I have not been able to find out how to do this and how the end user is going to be able to run the program.
Can anyone help me on this? How do I do this, where can I find the information to do this, etc...?
Robin Richardson
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Most computers these days already come with the JRE installed.
However you can get the JRE from Sun and bundle it with your application just to make SURE.
When you start up you application you will need to make sure to specify the classpath that points to this new downloaded JRE.
If you are on a Windows platform you will probably need to create a bat file that holds the commands to invoke the application using the classpath that includes the JRE and your app class files.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: JRE and java program distribution/please help
It's not a secret anymore!