Can't add menu item in Gnome for java app

I can’t add a menu app for a java jar app (Minecraft) with alacarte. I set the “command” field, and it disables the “Ok” button

Hi
I find it easier to just manually create…eg;


#!/usr/bin/env xdg-open
[Desktop Entry]
Categories=Game;Simulation;
Encoding=UTF-8
Terminal=false
Exec=java -jar <YOUR/PATH/TO/>Minecraft.jar
Type=Application
StartupNotify=false
Name=Minecraft Client
GenericName=Minecraft Client
Icon=minecraft

Open an editor as copy/paste the above and save as minecraft.desktop, save to ~./local/share/applications directory (NOTE change the path to your jar file).

I just googled for a minecraft.png icon and save to ~/.icons as minecraft.png, then press alt+F2 and enter the letter r and press enter to restart the shell and it will be added to the system which you can then search for in overview.

Thanks! It works!