Making a Java Application Into An Executable File --- Urgently Needed - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Making a Java Application Into An Executable File --- Urgently Needed

dublin666dublin666 Posts: 1Member
Hi there,

I have a game that I have programmed in Java using JCreator.

I am now looking to make that into an executable program so I can copy it onto a USB stick and give it to friends or family.

Any help greatly appreciated

Comments

  • BeekmanBeekman Posts: 8Member
    You can't really make an exe from a java program, because it has to run in the Virutal Machine.

    The closest you can come to an executable program is an executable jar file. But if you want to run the jar on a different computer, a Java Virtual Machine must be running. If it's not, it should be installed before you can run your jar.
  • willpdwillpd Posts: 1Member
    Try Launch4j (http://launch4j.sourceforge.net/). It will wrap your JAR file in a Windows native executable. I've used it with great success on several projects.
  • Josh CodeJosh Code Posts: 675Member
    You could also try [link=http://gcc.gnu.org/java/]GCJ (GNU Compiler for Java)[/link].

    It is designed to compile native executable code from Java. It doesn't work perfectly all the time but it is worth a try.
Sign In or Register to comment.