Ask Your Question
0

how to make a jar file run at startup

asked 2019-02-25 13:49:05 -0600

I am running fedora 21 and want my Minecraft server to start at startup. I have my pc set to restart after a power failure and would like the server to auto start too.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-02-26 16:32:17 -0600

copy a desktopfile from /usr/share/applications/ to your Desktopdirectory.

change the Exec= line to "java -jar yourjarfile.jar"

Test it by double clicking the desktop icon resulting from your copy.

After this is working, your the next step depends on your desktop environment:

Gnome: use the gnome tweak tool to add your "APP" to the autostart sequence. Cinnamon: there is a seperate Start app to manage the autostartup. Use it to add your app to the list. The Others: i have no idea, but it will be similar to the above :)

edit flag offensive delete link more

Comments

and BTW .. F21 is not an active os anymore.. update to F29.

rdtcustomercare gravatar imagerdtcustomercare ( 2019-02-26 16:33:11 -0600 )edit

Question Tools

Stats

Asked: 2019-02-25 13:49:05 -0600

Seen: 84 times

Last updated: Feb 26 '19