Forum Stats

  • 3,816,037 Users
  • 2,259,133 Discussions
  • 7,893,366 Comments

Discussions

Efficient way of distributing java application

2»

Comments

  • 843807
    843807 Member Posts: 46,582
    can anybody post a link on how to excatly make a 'double clickable' jar executable for Windows platform

    pradeep
  • 843807
    843807 Member Posts: 46,582
    can anybody post a link on how to excatly make a 'double clickable' jar executable for Windows platform

    pradeep
  • 843807
    843807 Member Posts: 46,582
    I think Sun should have defined another name for executable
    jar files, for example .japp, .jexe or .jxe and used the .jar
    name only for archives, class libraries, etc.

    To make a .japp file from a .jar file you would have to add
    a properly formatted manifest file, preferably using some tool
    which would check the manifest.

    The java executable could be modified to interpret
    java abc.japp
    the same as
    java -jar abc.japp (or java -jar abc.jar currently)

    This would make deployment (on windows at least) much
    easier than it is now. The Java install would register
    .japp as belonging to java.exe and when the registry
    is damaged (as the junk invariably will) you can
    reassign the association in the "Open With..." dialog
    without having to go deep in and add the -jar option.
  • 843807
    843807 Member Posts: 46,582
    check in java documentation - tool - jar

    it is mainly by creating a manifest file and put your main class name into that manifest

    cheers

    Tonny
    http://www.kiyut.com
    (Swing Component)
This discussion has been closed.