java - the .jar file does not execute when I click on it -


i know question sound stupid, first java program after all. k, question is, when type this: java -jar javaapplicationtest.jar program executes without problems, when go folder javaapplicationtest.jar file is, , click on it, not execute. thought .jar files .exe file, they? mean, in way click on them , program runs; 'cos java virtual machine running in ground. please, appreciated.

no, aren't .exe. .exe .exe.

when execute jar file, it's java jvm that's running, not jar file. jvm opens jar, loads .class byte code, , executes main class specified in meta-inf.

i'm guessing windows operating system doing besides running jvm when double click. try right clicking , seeing options windows operating system presents you. if 1 of them unzip file, you'll have add running jvm choice.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -