Java .jar file → Icon on panel. Halp? 😍

I have a jar file. Happens to be Minecraft in this case, but there’s at least one other I have in mind, so I’m seeking general instructions for MATE - or… GNOME? I’m still a little hazy on which part is which.

I have Java installed such that I can double-click on the jar and it runs in Java. I can make a link on the Desktop, but I’d rather put it on a panel as an icon. As a bonus, I wouldn’t mind knowing how to add it to my Games menu.

I especially don’t mind a link to a tutorial that works. Things I found so far didn’t.

Hi ieh,

I have never done anything like that with Java but I assume a good place to start would be here (if you haven't already done so?):

https://docs.oracle.com/javase/tutorial/deployment/jar/index.html

To add to panel, right click the top panel > Add to panel > Custom Application Launcher and put its path in (I assume that you right click the desktop icon and copy the string shown in properties?):

To add to the menu, right click Applications > Edit Menus > select "Games" > New item > Add and paste the command in the command line (browse if necessary):

Hope it helps. :smiley:

Create a desktop file for the java program, make it executable (right-click > properties > check ‘executable’ checkbox under the permissions tab). Then search for this program (the desktop file name) and it should show up and you can put it on the panel.