[ask] how to make doubleclick .jar java launch the app

dear all

… the question is pretty straightforward… sorry if it’ have been ask before…

regards

If jar is the java format, try to make it executeabe

make an MyApplication text file with this content for example:

#!/bin/sh
java -jar jarfile.jar

and set executable flag for this file:
chmod +x MyApplication
or Set by Alt+I -> Permissions -> Execute

…i’ve been try… thats not work
it say…wrong marked as executable…
if i choose yes… it show …no preferred apps for this type… blah blah

thanks @3dEyes… your solution work… but i want no need create additional file…

Capture
but it seem diffirent show on windows(10) and haiku64

but it seem diffirent show on windows(10) and haiku64

Try to install any LAF for java by default. I tried to do this for a long time ago and it’s works.

ah… thanks for your direction… i will try with different laf to see the effect