I'm new to ubuntu and linux... I'm trying to make a minecraft launcher .desktop file, and when I execute it, it says me: "There was an error launching the application" My code is:

[Desktop Entry]
Exec="/usr/bin/java -jar ~/Desktop/Minecraft.jar"

Can anybody help? Thanks!


Change ~/Desktop to /home/YOURUSERNAME,

Before: Exec=/usr/bin/java -jar ~/Desktop/Minecraft.jar

After: Exec=/usr/bin/java -jar /home/YOURUSERNAME/Desktop/Minecraft.jar

  • Thanks for your reply, but I still get the same error... – user249659 Feb 19 '14 at 13:27
  • 1
    Oh, sorry, I am so noob... I just remove the quotes from the Exec, and it's worked.... – user249659 Feb 19 '14 at 13:44

You need to add the Path=/home/YOURUSERNAME/Desktop to it, that's what made it work for me.

  • 1
    I'd give you a +1 for your answer. But the question is from a newbie and needs more handholding. Make an example. What is the "parent" of a path? How can he find this path? – MadMike Jun 15 '15 at 11:18
  • parent_path in the noobie example above would be : /home/YOURUSERNAME/Desktop – thouliha Jun 15 '15 at 12:36
  • Well then, don't answer as a comment. Instead click the edit link below your answer an update it accordingly. – MadMike Jun 15 '15 at 14:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.