Can i add a jar file to the start menu?

Hey!
I have an SKlauncher.jar file (Minecraft Launcher) and I want to add it to the start menu. I tried doing it with the main menu program, but it doesn't open.
Is there any method to do this?

Make a script and place it /.local/share/applications

[Desktop Entry]
Name=Mincraft
Comment=Play Minecraft on Linux
Exec=sh -c "cd <path-to-file> && <execute the file>"
Icon=
Terminal=false
Type=Application
Categories=Game;
1 Like

It's still not working:( Is there any mistake?

Up to several, but one is my mistake. There's missing a "
sh -c "cd <distination> && <here you write the file name and the command to execute it>"

To execute a jar file:
java -jar name-of-app.jar

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.