• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

executing java program

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
reply
    Bookmark Topic Watch Topic
  • New Topic