ganttproject icon indicating copy to clipboard operation
ganttproject copied to clipboard

GanttProject not working on Ubuntu 24.04.1

Open CulpeperMike opened this issue 1 year ago • 14 comments

Ganttproject did not copy over on upgrade from Ubuntu 22.04 to 24.04. New deb install not working - no display, no start. Appears to be java problem. I downloaded and installed full JRE bellsoft-java-17-runtime-full but still no joy....

CulpeperMike avatar Oct 20 '24 14:10 CulpeperMike

Please share the contents of /tmp/ganttproject-launch.log file after running ganttproject command

dbarashev avatar Oct 21 '24 09:10 dbarashev

I also use Ubuntu 24.04 and have the same Issue. Ganttproject starts but i am unable to work with it.

  • when i open an existing project and try o manipulate anything, the UI shakes and it hangs. No log is written
  • when i create a new project and want to add columns it freezes and can only be killed via bash
  • both logs .ganttproject.d/logs/ and /tmp/ganttproject-launch.log are not created

What i tried so far

different versions of JRE (Oracle, OpenJDK...) -> seems not to make any differences.

Outputs

running ganttproject via bash says:

WARNING: Unknown module: javafx.graphics specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.graphics specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.base specified to --add-exports
WARNING: Unknown module: javafx.base specified to --add-exports
WARNING: Unknown module: javafx.base specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.graphics specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.graphics specified to --add-exports
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime build
FEIN: We will run with the following plugins:
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin org.ganttproject.chart.pert-3.3.3312 at /usr/share/ganttproject/plugins/base/org.ganttproject.chart.pert/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin biz.ganttproject.impex.msproject2-3.3.3312 at /usr/share/ganttproject/plugins/base/biz.ganttproject.impex.msproject2/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin biz.ganttproject.app.localization-3.3.3312 at /usr/share/ganttproject/plugins/base/biz.ganttproject.app.localization/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin biz.ganttproject.impex.ical-3.3.3312 at /usr/share/ganttproject/plugins/base/biz.ganttproject.impex.ical/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin org.ganttproject.impex.htmlpdf-3.3.3312 at /usr/share/ganttproject/plugins/base/org.ganttproject.impex.htmlpdf/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin net.sourceforge.ganttproject-3.3.3312 at /usr/share/ganttproject/plugins/base/ganttproject/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin biz.ganttproject.app.libs-3.3.3312 at /usr/share/ganttproject/plugins/base/biz.ganttproject.app.libs/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin biz.ganttproject.core-3.3.3312 at /usr/share/ganttproject/plugins/base/biz.ganttproject.core/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.Runner run
FEIN: Command line args: [-log, true, -log_file, /home/felix/.ganttproject.d/logs/.ganttproject-20241030115032.log]
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.Runner run
FEIN: Launching application=net.sourceforge.ganttproject.GanttProject
[2024-10-30 11:50:33] [WARN][javafx] Unsupported JavaFX configuration: classes were loaded from 'unnamed module @1bb123db' 

ganttproject -v says:

WARNING: Unknown module: javafx.graphics specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.graphics specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.base specified to --add-exports
WARNING: Unknown module: javafx.base specified to --add-exports
WARNING: Unknown module: javafx.base specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.graphics specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.graphics specified to --add-exports
Exception in thread "main" com.beust.jcommander.ParameterException: Expected a value after parameter -v
        at com.beust.jcommander.JCommander.processFixedArity(JCommander.java:925)
        at com.beust.jcommander.JCommander.processFixedArity(JCommander.java:894)
        at com.beust.jcommander.JCommander.parseValues(JCommander.java:724)
        at com.beust.jcommander.JCommander.parse(JCommander.java:356)
        at com.beust.jcommander.JCommander.parse(JCommander.java:335)
        at com.bardsoftware.eclipsito.Launch.main(Launch.java:21)

Searching for Java in /usr/share/ganttproject/runtime/bin/java
...missing or not executable
Searching for Java in /usr/bin/java
...found openjdk version "17.0.12" 2024-07-16
JAVA_HOME=
JAVA_COMMAND=/usr/bin/java
GP_HOME=/usr/share/ganttproject
user.dir=/home/felix

Searching for Java in /usr/share/ganttproject/runtime/bin/java
...missing or not executable
Searching for Java in /usr/bin/java
...found openjdk version "17.0.12" 2024-07-16
JAVA_HOME=
JAVA_COMMAND=/usr/bin/java
GP_HOME=/usr/share/ganttproject
user.dir=/home/felix

EureDudeheit avatar Oct 30 '24 10:10 EureDudeheit

Did you try installing Liberica Java 17 Full JRE from BellSoft? I recommend doing it using sdkman! (because it allows for easy switching between different Java runtimes) however you may as well download it directly from BellSoft site: https://download.bell-sw.com/java/17.0.13+12/bellsoft-jre17.0.13+12-linux-amd64-full.deb

dbarashev avatar Oct 30 '24 11:10 dbarashev

Yes. I tried to open a project (only one task, nothing else). The app flickers and i only can kill it via bash. The logfile is as follows:

ganttproject-20241030122051.log

EDIT sorry, the logs are written -> i have overseen that they were hidden...

EureDudeheit avatar Oct 30 '24 11:10 EureDudeheit

And what is in /tmp/ganttproject-launcher.log ?

dbarashev avatar Oct 30 '24 11:10 dbarashev

Searching for Java in /usr/share/ganttproject/runtime/bin/java
...missing or not executable
Searching for Java in /usr/bin/java
...found openjdk version "17.0.13" 2024-10-15 LTS
JAVA_HOME=
JAVA_COMMAND=/usr/bin/java
GP_HOME=/usr/share/ganttproject
user.dir=/home/felix/OneDrive/Projekte/Hauskauf/Planung/08_Terminplan

EureDudeheit avatar Oct 30 '24 11:10 EureDudeheit

The app flickers and i only can kill it via bash.

How does it look like? Can you record a screencast?

dbarashev avatar Oct 30 '24 12:10 dbarashev

I would have to reinstall another JRE, is this neccessarry for You?

EureDudeheit avatar Oct 30 '24 13:10 EureDudeheit

Sorry? I don't understand the question. I would like to look at the behavior of GanttProject launched with Liberica 17 Full JRE.

dbarashev avatar Oct 30 '24 14:10 dbarashev

That flickering (was like when you grab the window and wobble it) occured with Liberica 17 Full JRE as well as with OpenJDK and Oracle Java.

Is there anything more i can provide for you?

ganttproject-20241030161223.log

logfile:

GanttProject 3.3.3312
Settings file:
	location: /home/felix/.ganttproject
	size:6072
	is readable: true
java.class.path: :/usr/share/ganttproject/eclipsito.jar:/usr/share/ganttproject/lib/slf4j-api-2.0.4.jar:/usr/share/ganttproject/lib/slf4j-jdk14-2.0.4.jar:/usr/share/ganttproject
java.home: /usr/lib/jvm/bellsoft-java17-runtime-full-amd64
java.ext.dirs: null
java.io.tmpdir: /tmp
java.runtime.version: 17.0.13+12-LTS
java.vendor: BellSoft
java.vm.name: OpenJDK 64-Bit Server VM
java.vm.vendor: BellSoft
java.vm.version: 17.0.13+12-LTS
os.arch: amd64
os.name: Linux
os.version: 6.8.0-47-generic
sun.java.command: com.bardsoftware.eclipsito.Launch --app net.sourceforge.ganttproject.GanttProject --version-dirs /usr/share/ganttproject/plugins:~/.ganttproject.d/updates -log true -log_file /home/felix/.ganttproject.d/logs/.ganttproject-20241030161223.log /home/felix/temp/Hauskauf_V00.2.gan
user.country: DE
user.dir: /home/felix/temp
user.home: /home/felix
user.language: de
user.timezone: Europe/Berlin

[2024-10-30 15:12:29] [INFO][org.jooq.Constants] 

jOOQ tip of the day: While you don't have to use jOOQ's code generator, there are *lots* of awesome features you're missing out on if you're not using it!
  
[2024-10-30 15:13:09] [INFO][net.sourceforge.ganttproject] [GanttOptions] save(): finished!!  

EureDudeheit avatar Oct 30 '24 15:10 EureDudeheit

Nice ) Did you try changing the appearance/font/window size/monitor? I mean, this looks as if something is wrong somewhere in the depth of the UI libraries, and is quite specific to your setup. Also, I recommend trying our ZIP distro (it completely relies on the JavaFX from JRE while DEB is bundled with JavaFX) and Java 21 (probably a bug that causes flickering is fixed there)

dbarashev avatar Oct 30 '24 15:10 dbarashev

I tried your suggestions:

UI

  • changed apperance to Nimbus (was GTK+ before)
  • set DPI to 96 (i have a monitor with UHD so everything is very small)

It seems to work now. I will report when there are changes and try the ZIP distro then as well.

a little OT: Is there a way to change the font size in the timeline?

grafik

EureDudeheit avatar Oct 31 '24 08:10 EureDudeheit

I installed Azul Zulu JDK on Arch, but still can't run the app image

Slava0135 avatar Dec 14 '24 09:12 Slava0135

I installed Azul Zulu JDK on Arch, but still can't run the app

You need a JRE 17 with FX modules. In case of Azul, here is a link to their packages: https://www.azul.com/downloads/?version=java-17-lts&os=linux&package=jre-fx#zulu

dbarashev avatar Dec 14 '24 11:12 dbarashev

ok, i encounter the same problem. I am newbie to java stuff. ganttproject launch stopps after splash screen and i have to hit CTRL_C to get back to my bash.

output:

Aug. 25, 2025 9:09:05 AM com.bardsoftware.eclipsito.runtime.Runner run FEIN: Command line args: [-log, true, -log_file, /home/fds/.ganttproject.d/logs/.ganttproject-20250825090904.log] Aug. 25, 2025 9:09:05 AM com.bardsoftware.eclipsito.runtime.Runner run FEIN: Launching application=net.sourceforge.ganttproject.GanttProject [2025-08-25 09:09:05] [WARN][javafx] Unsupported JavaFX configuration: classes were loaded from 'unnamed module @6de1c6de'
^C <--- hit by me as ganttproject is not starting...

The log was written to /home/fds/.ganttproject.d/logs/.ganttproject-20250825090904.log

Searching for Java in /usr/share/ganttproject/runtime/bin/java ...missing or not executable Searching for Java in /usr/bin/java ...found openjdk version "17.0.15" 2025-04-15 JAVA_HOME= JAVA_COMMAND=/usr/bin/java GP_HOME=/usr/share/ganttproject user.dir=/home/fds

Searching for Java in /usr/share/ganttproject/runtime/bin/java ...missing or not executable Searching for Java in /usr/bin/java ...found openjdk version "17.0.15" 2025-04-15 JAVA_HOME= JAVA_COMMAND=/usr/bin/java GP_HOME=/usr/share/ganttproject user.dir=/home/fds

mentioned LOG:

GanttProject 3.3.3316 Settings file: location: /home/fds/.ganttproject size:0 is readable: false java.class.path: :/usr/share/ganttproject/eclipsito.jar:/usr/share/ganttproject/lib/slf4j-api-2.0.4.jar:/usr/share/ganttproject/lib/slf4j-jdk14-2.0.4.jar:/usr/share/ganttproject java.home: /usr/lib/jvm/java-17-openjdk-amd64 java.ext.dirs: null java.io.tmpdir: /tmp java.runtime.version: 17.0.15+6-Debian-1 java.vendor: Debian java.vm.name: OpenJDK 64-Bit Server VM java.vm.vendor: Debian java.vm.version: 17.0.15+6-Debian-1 os.arch: amd64 os.name: Linux (BTW: I am on Debian Testing) os.version: 6.12.17-amd64 sun.java.command: com.bardsoftware.eclipsito.Launch --app net.sourceforge.ganttproject.GanttProject --version-dirs /usr/share/ganttproject/plugins:~/.ganttproject.d/updates -log true -log_file /home/fds/.ganttproject.d/logs/.ganttproject-20250825090904.log user.country: DE user.dir: /home/fds user.home: /home/fds user.language: de user.timezone: Europe/Berlin

/tmp/ganttproject-launcher.log

Searching for Java in /usr/share/ganttproject/runtime/bin/java ...missing or not executable Searching for Java in /usr/bin/java ...found openjdk version "17.0.15" 2025-04-15 JAVA_HOME= JAVA_COMMAND=/usr/bin/java GP_HOME=/usr/share/ganttproject user.dir=/home/fds

fds2610 avatar Aug 25 '25 07:08 fds2610

I recommend installing Java 17 with JavaFX modules from BellSoft. This distro is called "Full JRE" on their web site, Here is a direct link: https://download.bell-sw.com/java/17.0.16+12/bellsoft-jre17.0.16+12-linux-amd64-full.deb

dbarashev avatar Aug 25 '25 10:08 dbarashev

For what it's worth .. I'm running into the same troubles as reported in this issue.. except I am forced to use OpenJDK/OpenJFX because I am on Alpine Linux which uses musl instead of glibc. Liberica and Zulu are not possible to use due to the glibc requirement. As it stands, it would seem that Ganttproject unfortunately cannot be used on Alpine.

It would be unreasonable to expect this project to support every small operating system under the sun, however, release testing against OpenJDK would surely be a step in the right direction. Just my 2 cents

Modifying the ganttproject script from this...

"$JAVA_COMMAND" -Dgpcloud=prod -Dorg.jooq.no-logo=true -Xmx2048m $JAVA_EXPORTS -Duser.dir="$(pwd)" $DEBUG_ARGS $BOOT_CLASS \

to this...

"$JAVA_COMMAND" --module-path /usr/lib/openjfx --add-modules javafx.controls,javafx.fxml -Dgpcloud=prod -Dorg.jooq.no-logo=true -Xmx2048m $JAVA_EXPORTS -Duser.dir="$(pwd)" $DEBUG_ARGS $BOOT_CLASS \

gets rid of the module errors (e.g. WARNING: Unknown module: javafx.XYZ specified to --add-exports), but the GUI fails to launch.

wayward777 avatar Oct 27 '25 15:10 wayward777

@wayward777 There is an OpenJFX package for Alpine: https://pkgs.alpinelinux.org/package/edge/testing/x86_64/openjfx

I did not test it, but you may want to try. Let us know if you would be able to make it working.

dbarashev avatar Oct 27 '25 15:10 dbarashev

@wayward777 There is an OpenJFX package for Alpine: https://pkgs.alpinelinux.org/package/edge/testing/x86_64/openjfx

I did not test it, but you may want to try. Let us know if you would be able to make it working.

Well what do you know... I came here to reply to say that I tried OpenJDK/JFX and it wasn't working, but I guess all I needed was a reboot because I just tested it again and it decided to work. I was banging my head against the wall for a good 2 hours trying to get it to work.. lo and behold, "have you tried turning it off and then on again" actually fixed the problem

wayward777 avatar Oct 28 '25 22:10 wayward777