1

I am currently trying to use HERO Designer, a Java program, on Ubuntu 16.04. All other Java programs work as expected (i. e. I double click on them and they start without issue).

  • If I run it from the command line (java -jar HD6.jar) everything works fine.

  • If I double click on it, it locks up. The splash screen comes up and it stops a few moments later. When executed by double clicking the program starts, then hangs on the splash screen.

    According to the developer, this means I don't have write permissions. I looked in Properties > Permissions. I am the owner. The owner and group have read/write access, and the executable flag is checked. I also created a bash script that just runs the above line with the same results.

The result of the ps aux | grep HD6 is:

daniel   13216  1.0  2.6 5019752 214316 ?      Sl   19:28   0:18 /usr/bin/java -jar /home/daniel/Programs/HERODesigner/HD6.jar

I'm opening with "OpenJDK Java 8 Runtime". Other Java programs run without issue by double clicking the icon. Any suggestions?

1 Answers1

0

The problem was the shortcut did not include a path. You will have to manually create a .desktop file.

  1. Right click on the desktop, New Document -> Empty Document.
  2. Open the "Untitled Document" with your preferred text editor and enter the following, modified to your specific situation.

    [Desktop Entry]
    Version=6.0
    Name=HERO Designer
    Comment=HERO Designer Build 20170109
    Exec=bash -c "cd /path/to/your/HERODesigner/folder && java -jar HD6.jar"
    Icon=/path/to/your/HERODesigner/folder/hdlogo.png
    Terminal=false
    Type=Application
    Categories=Games;Application;
    Path=/path/to/HERODesigner/folder
    
  3. Save the file.

  4. Rename the file "HERO Designer.desktop".
  5. Right click on the "HERO Designer.desktop", click on the Permissions tab, and put a check in the "Allow executing file as program", close the window

You should now have a HERO Designer desktop icon. Double click and it should start up the program.