This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JRE and java program distribution/please help

 
Robin Richardson
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...?
Thanks
Robin Richardson
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
http://java.sun.com/j2se/1.3/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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic