The easiest way to run it would be to add it to the file /etc/rc.local.
(Assuming the jar is in your home folder) Make a script like the following and save it in your home folder (let's call myapp.sh, for example):
Code:
#!/bin/sh
java -jar /your_home_folder/your_app.jar [optional arg if any]
Make it executable:
Code:
chmod u+x myapp.sh
./myapp.sh
So now you'll have to open /etc/rc.local to add a call to your script. In order to do it just run the following:
Code:
gksudo geany /etc/rc.local
(You'll have to use the text pad you have installed on your computer)
And just before the line exit 0, add the the call to your script:
Code:
sh /your_home_folder/myapp.sh
Bookmarks