aspose file tools*
The moose likes Beginning Java and the fly likes executing java program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
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
Sheriff

Joined: Oct 01, 2001
Posts: 2861
    
  11

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: executing java program