mamech
Posts: 6
Joined: Sun Sep 03, 2017 12:02 pm

Running a Java application using double click

Wed Sep 20, 2017 7:21 am

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 ??

megamarky
Posts: 19
Joined: Sun Jun 11, 2017 6:43 am

Re: Running a Java application using double click

Wed Sep 27, 2017 8:33 am

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
GigaBrain.io

Return to “Java”

Who is online

Users browsing this forum: No registered users and 1 guest