kayler-renslow / arma-dialog-creator

A dialog/GUI creation tool for Arma 3.
MIT License
76 stars 12 forks source link

Error when trying to run it on Linux. #48

Closed im-alfa closed 5 years ago

im-alfa commented 5 years ago

Version and Build

1.0.7

Summary

When I try to run the .jar this error occurs: Error: Could not find or load main class com.kaylerrenslow.armaDialogCreator.main.ArmaDialogCreator

Detail

alt text alt text alt text

kayler-renslow commented 5 years ago

I tried this on my Linux machine and it appears it was an issue with JavaFX. Here are some steps:

  1. Install Java JDK 11 (I couldn't find JavaFX for Java 8 on Linux)

    sudo apt-get install openjdk-11-jdk

  2. Download this .zip and extract in your installation directory of ADC. After extraction,start_adc.sh should be in same directory as adc.jar.
  3. Execute start_adc.sh

    sudo sh start_adc.sh

Still doesn't launch? Run java --version in command line. If it still says openjdk version 1.8.0_212, then you will have to modify the shell script. Change java at the start of the file to /usr/lib/jvm/java-11-openjdk-amd64/bin/java or wherever your openjdk 11 bin/java is. You could also try uninstalling java 8.

Let me know if this resolves this.

im-alfa commented 5 years ago

Hello, first of all thank you very much for your reply.

Effectively the error was due to JavaFX and since I had several versions installed I had to change the default installation with this command sudo update-alternatives --config java.

Afterwards, I had to add the execution permissions to the .sh and it worked perfectly.

Thank you very much for your help and very good work!

alt text

im-alfa commented 5 years ago

I've also seen that there are some bugs with the responsive in Linux.

I'll try to figure them out on my own.

Thanks again for your support ^^

alt txt

kayler-renslow commented 5 years ago

Sweet. I'll mark this as closed then.