Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

executing java program

 
Larry UpNorth
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2984
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic