Java to executable

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jaques

    Java to executable

    Hi,

    I'm looking for a tool that converts a jar into an executable program (or
    something like that). I guess there are a couple of options:
    1) Convert the jar into a real executable that runs natively on
    the operating system (or similar)
    2) Pack a jar file and JRE into one file, and make it look
    like an executable file (or similar)
    3) any other possibilities welcome

    The point is that when I distribute my java program, I don't
    want to let my users install JRE if they don't have it.

    Is there any good web site that summarizes these techniques?
    And also, I appreciate if anyone could recommend tools to
    do (1) or (2). It doesn't matter if it is free or payware.

    My main platform is Windows, but if the tool supports both
    Windows and linux, it's better.
    (I'm using JDK 1.4.x, and using JNI, too)

    Thank you for your help,

    --jaques
  • Amey Samant

    #2
    Re: Java to executable

    jaquesbosch2@ya hoo.de (Jaques) wrote in message news:<569b197f. 0311022226.4975 [email protected] ogle.com>...[color=blue]
    > I'm looking for a tool that converts a jar into an executable program (or
    > something like that). I guess there are a couple of options:
    > 1) Convert the jar into a real executable that runs natively on
    > the operating system (or similar)
    > 2) Pack a jar file and JRE into one file, and make it look
    > like an executable file (or similar)
    > 3) any other possibilities welcome
    >
    > --jaques[/color]

    hi
    there are lot of tools available for this (i havebt used any so i
    would not refer to any but theres a wide choice)

    as far as your second option goes
    i have written a small program in c which runs .class / . jar files
    just like any normal file by double clicking it
    when you first time click any .class file , your system will ask you
    as default viewer is not associated with it (remove any if it is) ,
    choose this program & you are done
    then you can simply double click any .class file & if you have jre &
    ..class has main method your file will run as if you manually invoked
    java.exe from command prompt

    it can be supplied command line arguments , java -switches
    i shall mail you if you want

    regards
    amey

    Comment

    • Herman Timmermans

      #3
      Re: Java to executable

      Jaques wrote:
      [color=blue]
      > Hi,
      >
      > I'm looking for a tool that converts a jar into an executable program (or
      > something like that). I guess there are a couple of options:
      > 1) Convert the jar into a real executable that runs natively on
      > the operating system (or similar)
      > 2) Pack a jar file and JRE into one file, and make it look
      > like an executable file (or similar)
      > 3) any other possibilities welcome
      >
      > The point is that when I distribute my java program, I don't
      > want to let my users install JRE if they don't have it.
      >
      > Is there any good web site that summarizes these techniques?
      > And also, I appreciate if anyone could recommend tools to
      > do (1) or (2). It doesn't matter if it is free or payware.
      >
      > My main platform is Windows, but if the tool supports both
      > Windows and linux, it's better.
      > (I'm using JDK 1.4.x, and using JNI, too)
      >
      > Thank you for your help,
      >
      > --jaques[/color]
      Hi Jacques,
      have a look at this :

      http://www.ej-technologies.com/produ.../overview.html)
      or http://www.yoda.arachsys.com/java/javaexe.html
      or http://www.geocities.com/marcoschmid...mp.html#native

      Hope this helps,
      brgds Herman

      --
      Suse Linux Professional 8.1 on Athlon 1.1 Ghz 512 Mb
      Anti Spam = remove the "dot" and the "at"
      Registered Linux User #264690

      Comment

      • Robert Tyrie

        #4
        Re: Java to executable

        jaquesbosch2@ya hoo.de (Jaques) wrote in
        news:569b197f.0 311022226.49755 [email protected] gle.com:
        [color=blue]
        > Hi,
        >
        > I'm looking for a tool that converts a jar into an executable program
        > (or something like that). I guess there are a couple of options:
        > 1) Convert the jar into a real executable that runs natively on
        > the operating system (or similar)
        > 2) Pack a jar file and JRE into one file, and make it look
        > like an executable file (or similar)
        > 3) any other possibilities welcome
        >
        > The point is that when I distribute my java program, I don't
        > want to let my users install JRE if they don't have it.
        >
        > Is there any good web site that summarizes these techniques?
        > And also, I appreciate if anyone could recommend tools to
        > do (1) or (2). It doesn't matter if it is free or payware.
        >
        > My main platform is Windows, but if the tool supports both
        > Windows and linux, it's better.
        > (I'm using JDK 1.4.x, and using JNI, too)
        >
        > Thank you for your help,
        >
        > --jaques[/color]

        Hi,

        I recently found this tool:



        It wraps your jar into a windows exe. You can specify what JRE is
        required for your app and the tool will check if it exists on the user
        machine. If the required JRE is not found it will direct the user to
        download a suitable JRE. I've used several tools for deploying on
        Windows and I have found this one to be most flexible.

        Robert

        Comment

        Working...