How to make my java program an execution file

[color=Blue][/color]
Hello every body
any one can help me?
I had programmed a simple calculater using java but I need to make it an execution file,(an icon on the desktop so I can just double click it and use)

I know I am a very beginner :)

Comments

  • : [color=Blue][/color]
    : Hello every body
    : any one can help me?
    : I had programmed a simple calculater using java but I need to make
    : it an execution file,(an icon on the desktop so I can just double
    : click it and use)
    :
    : I know I am a very beginner :)
    :
    :
    There are two ways of tackling this problem:
    - Create a batch file which invokes the java VM and loads your application, i.e. give the "javaw myclass.class" command
    - Use a Java-to-native compiler to create a true executable. Excelsior JET is one such compiler. These compilers often cost quite a lot of money.

    Since you're a beginner I would suggest the first option.
    Here's one I used for one of my projects:
    [code]
    java -jar SchetsApplic.jar
    pause
    [/code]
    This code assumes that the application is a jar file, and that java is in the Windows path.
Sign In or Register to comment.

Howdy, Stranger!

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

Categories

In this Discussion