File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executing a Java program on a different machine

 
Tim frank
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
recently i've made a java program consisting of 4 classes, is there any way I can make this into a file that will run on other machines, something like a C++ .exe file? I've heard about JAR files, but not really too sure what they are.
Can anyone help, I really want to have some way of installing/running my program on other machines?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure a JRE (Java Runtime Environment) of the right version is installed on the other machine and then you can run your Java program without trouble.

You can't drive a car that doesn't have an engine installed, so to run a Java program, you must have Java installed on the computer.

If you're not sure that your users will have Java installed, you could create a setup program for your Java program with for example IzPack. It can automatically download and install Java on a computer if necessary while installing your program.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic