8 Replies Latest reply: Jan 6, 2011 12:05 AM by 828296 RSS

    Make .jar file execute on double click

    828296
      Hello all,

      I've created a .jar file and it executes normally when I type java -jar BasicCalculator.jar in the command window. When I double click the .jar file, though, nothing happens. The computer recognizes that the file is an Executable Jar File, and other .jar files that I've downloaded from online work fine when double clicked.

      Thanks in advance, help would be greatly appreciated.

      http://sphotos.ak.fbcdn.net/hphotos-ak-snc4/hs1395.snc4/164788_484405619388_732309388_6068183_2184151_n.jpg

      This is what appears when I double click the BasicCalculator.jar file. The window pops up for a split second, and I managed to get this screenshot after a few tries.