Page 1 of 1

Running a Java application using double click

Posted: Wed Sep 20, 2017 7:21 am
by mamech
Hello

I have searched for this problem in the past, but I am asking just to be sure that there is no solutions that I missed.
I made java application in the past on raspberry pi 2, and I wanted to run it using double clicking.
After some search , I knew that there must be a script file to run my program from it.

Is this true? are not there any way to make my program to be able to run by double clicking the jar file itself ??

Re: Running a Java application using double click

Posted: Wed Sep 27, 2017 8:33 am
by megamarky
mamech wrote:
Wed Sep 20, 2017 7:21 am
run by double clicking the jar file itself ??
Hello. You could add a new file to the Desktop folder with the content

Code: Select all

java -jar YourApp.jar
And make the file runnable with chmod +x YourScript.sh

Re: Running a Java application using double click

Posted: Thu Apr 18, 2019 1:17 am
by PiBurner