IntelliJ Java IDE
The moose likes Beginning Java and the fly likes executing java program Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "executing java program" Watch "executing java program" New topic
Author

executing java program

Larry UpNorth
Greenhorn

Joined: Aug 31, 2002
Posts: 4
I have been developing using JK 1.3.
Now that I have the program working I would like to move it to other computers.
My question is do I need to download the Java 1.3 run-time environment onto every computer I want to run on? Also, do I need to move all of the .class files over as they exist on my development machine, or is there a way to package them so I can just move one file over and run that file when I want it to execute.
Thanks very much to anyone who responds.
Greg Charles
Bartender

Joined: Oct 01, 2001
Posts: 1855

Welcome to Java!
Yes, you need a Java runtime enviornment on every machine where you will run Java programs. However, Sun distributes a "JRE", which is much smaller than the "JDK". It allows you to run Java programs, but not develop them.
You can package all your class files in jars. A jar file is like a zip file containing all your classes and other resources for running the program. You can create a jar file using the jar program that comes with the JDK. However, until you get more familiar with Java, and especially classpaths, I suggest just working with the individual classes.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
chrisH,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
 
subject: executing java program
 
Threads others viewed
Running an executable Jar file from another Java Program
Change Java runtime version
configure java version 1.3 should be used in a jre 1.5
Compiling and Running
how do I find out what version?
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture