padigender / luke

Automatically exported from code.google.com/p/luke
0 stars 0 forks source link

Add a 'main class' entry to the jar manifest. #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
See the following reference:
http://download.oracle.com/javase/tutorial/deployment/jar/appman.html

This would allow the app to be started by simply double-clicking the jar 
(presuming the relevant file association is set up).

Original issue reported on code.google.com by k.w.john...@gmail.com on 13 Oct 2010 at 3:19

GoogleCodeExporter commented 8 years ago
What jar are you using?
"java -jar lukeall-1.0.1.jar" works for me.
And I see proper "Main-Class: org.getopt.luke.Luke" in META-INF/MANIFEST.MF.

Original comment by fidlej on 20 Oct 2010 at 2:14

GoogleCodeExporter commented 8 years ago
Apologies,

I've looked again (I have lukeall-1.0.1.jar) and it does indeed have a 
Main-Class setting. Don't know how I missed this before.

The problem was in fact that I'm on Ubuntu and the executable bit has to be set 
for the downloaded jar before the JRE will treat it as executable.

Anyway, thanks for all your efforts building luke - it came in very handy. :)

Original comment by k.w.john...@gmail.com on 20 Oct 2010 at 3:25

GoogleCodeExporter commented 8 years ago
You are welcome, thanks for bringing a closure to this.

Original comment by sig...@gmail.com on 27 Apr 2011 at 11:10