Hi everyone !
Before I try to explain my problem, I’d like to say that I read topic “Installation instruction on Fedora29” and really help with understand something but not all.
After I download file ganttproject_2.8.10-r2364-1_all.deb I used command “sudo alien -r ganttproject_2.8.10-r2364-1_all.deb” to convert it to rpm package. This process works even with warning messages:
Warning: Skipping conversion of scripts in package ganttproject: postinst postrm
Warning: Use the --scripts parameter to include the scripts.
ganttproject-2.8.10-2.noarch.rpm generated
As was just warning messages I move on and so I tried “sudo dnf install ganttproject-2.8.10-2.noarch.rpm” and the result was an error:
Erro: Transaction test error:
o arquivo / da instalação de ganttproject-2.8.10-2.noarch conflita com o arquivo do pacote filesystem-3.12-2.fc31.x86_64
o arquivo /usr/lib da instalação de ganttproject-2.8.10-2.noarch conflita com o arquivo do pacote filesystem-3.12-2.fc31.x86_64
Sorry, was in portuguese, I’m brazilian so … but It means:
the file / of ganttproject-2.8.10-2.noarch installation conflicts with file of filesystem-3.12-2.fc31.x86_64 package
the file /usr/lib of ganttproject-2.8.10-2.noarch installation conflicts with file of filesystem-3.12-2.fc31.x86_64 package
After this trial I download the zip file and unzip it on /opt/ and after that I enter in ganttproject-2.8.10-2364 directory and type “./ganttproject”. This time the response was
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-5.b14.fc27.x86_64/jre/bin/java does not exist
But when I type java -version I see
openjdk version “1.8.0_242”
OpenJDK Runtime Environment (build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
So I tried to check JAVA_HOME with “echo $JAVA_HOME” and result is
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-5.b14.fc27.x86_64/jre
Checking where java is installed I type “which java” and result is
/usr/bin/java (simbolic link to /etc/alternatives/java)
Finally /ect/alternatives/java is link to
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.fc31.x86_64/jre/bin/java
And this last file exist and so why the script ganttproject say “does not exist” ? I can’t understand how JAVA_HOME works, any help woul be grateful !!!