Yet another "Gantt Project Won't Start on Windows 10" request for help

Just what it says on the tin. I’ve installed both the current full release and the beta and neither will start. Both end up with their launchers lurking in the background. I’ve installed Java just to be sure, and it doesn’t help either. I can’t find anything useful in any of the other posts on the topic. I haven’t had GanttProject installed on this computer before, so there aren’t any preexisting config files I can delete. I’m not getting to the windows security modal, even, so I’m not sure what to do there.

I’ve also tried running the damned thing as an administrator to no avail. Starting it from the command line results in a blank line and no error reporting. I’ve restarted and tried running everything fresh and it just behaves the same way regardless.

Java:

java -version
java version "1.8.0_371"
Java(TM) SE Runtime Environment (build 1.8.0_371-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.371-b11, mixed mode)

The error log does not exist in my home directory, which I do know is the path Users/<username> . So there’s nothing interesting there.

I’ve successfully installed this on my Linux laptop and didn’t have any problems, but my lesser-used Windows desktop is stymying me! What on earth am I missing?

GanttProject 3.2 requires Java 11. GanttProject 3.3 requires Java 17. I would recommend to upgrade your Java or remove it completely because GanttProject comes with its own Java Runtime.

Thanks, and sure, but I only installed that out of desperation after finding it in another post here. I’ve just uninstalled Java, and it doesn’t change anything .:frowning:

So what do you get now if you run the command-line launcher ganttproject.bat from the command line?

Ah! That actually did something, thank you! Now it’s complaining about not being able to find Java. Hmmm. Uninstalled 3.2, restarted, and reinstalled 3.2. Same error.

'"java"' is not recognized as an internal or external command,
operable program or batch file.
"Please set up JAVA_HOME variable"

Looks like I have java in the C:\Program Files (x86)\GanttProject-3.2\runtime\bin directory, so if I set that as the JAVA_HOME variable I now get:

The system cannot find the path specified.

Setting it to directly point at java.exe keeps me stuck with the “is not recognized as an internal or external command” error instead.

Thanks for the quick feedback, this feels like progress. Any advice for pointing GanttProject at its own Java location?

Can you run this command before executing ganttproject.bat?

SET "JAVA_HOME=C:\Program Files (x86)\GanttProject-3.2\runtime"

Ah! I’m one level too high, I’ve been linking to /bin rather than /runtime. Thanks for the accidental hint.

This leaves me with

Error: Could not find or load main class com.bardsoftware.eclipsito.Launch
Caused by: java.lang.ClassNotFoundException: com.bardsoftware.eclipsito.Launch

That’s annoying, I’ve had a few restarts since I uninstalled Java and uninstalled/reinstalled GanttProject.

Do you run ganttproject.bat from C:\Program Files (x86)\GanttProject-3.2 working directory? If not, please run cd C:\Program Files (x86)\GanttProject-3.2 before launching ganttproject.bat.

Oh, that matters? That’s an interesting dependency. Okay. So that also did some stuff, although it’s still not quite running:

Apr 27, 2023 6:06:12 PM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$getVersionLayerStoreDirs$5
FINE: Path `plugins` is not absolute. We'll try resolving it relative to user.dir=C:\Program Files (x86)\GanttProject-3.2
Apr 27, 2023 6:06:12 PM com.bardsoftware.eclipsito.runtime.ModuleRuntime build
FINE: We will run with the following plugins:
Apr 27, 2023 6:06:12 PM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FINE: Plugin biz.ganttproject.impex.msproject2-3.2.3230 at C:\Program Files (x86)\GanttProject-3.2\plugins\base\biz.ganttproject.impex.msproject2\plugin.xml
Apr 27, 2023 6:06:12 PM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FINE: Plugin org.ganttproject.chart.pert-3.2.3230 at C:\Program Files (x86)\GanttProject-3.2\plugins\base\org.ganttproject.chart.pert\plugin.xml
Apr 27, 2023 6:06:12 PM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FINE: Plugin biz.ganttproject.app.localization-3.2.3230 at C:\Program Files (x86)\GanttProject-3.2\plugins\base\biz.ganttproject.app.localization\plugin.xml
Apr 27, 2023 6:06:12 PM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FINE: Plugin biz.ganttproject.impex.ical-3.2.3230 at C:\Program Files (x86)\GanttProject-3.2\plugins\base\biz.ganttproject.impex.ical\plugin.xml
Apr 27, 2023 6:06:12 PM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FINE: Plugin org.ganttproject.impex.htmlpdf-3.2.3230 at C:\Program Files (x86)\GanttProject-3.2\plugins\base\org.ganttproject.impex.htmlpdf\plugin.xml
Apr 27, 2023 6:06:12 PM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FINE: Plugin net.sourceforge.ganttproject-3.2.3230 at C:\Program Files (x86)\GanttProject-3.2\plugins\base\ganttproject\plugin.xml
Apr 27, 2023 6:06:12 PM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FINE: Plugin biz.ganttproject.app.libs-3.2.3230 at C:\Program Files (x86)\GanttProject-3.2\plugins\base\biz.ganttproject.app.libs\plugin.xml
Apr 27, 2023 6:06:12 PM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FINE: Plugin biz.ganttproject.core-3.2.3230 at C:\Program Files (x86)\GanttProject-3.2\plugins\base\biz.ganttproject.core\plugin.xml
Apr 27, 2023 6:06:12 PM com.bardsoftware.eclipsito.runtime.Runner run
FINE: Command line args: [-log, true]
Apr 27, 2023 6:06:12 PM com.bardsoftware.eclipsito.runtime.Runner run
FINE: Launching application=net.sourceforge.ganttproject.GanttProject

This gets me a Command Processor which has a command prompt as a child thread and the OpenJDK Platform binary as another child thread. Nothing’s starting, but it’s progress.

But then, if I kill that, I can see that Java’s waiting on a locked resource:

2023-04-27 18:10:27
Full thread dump OpenJDK 64-Bit Server VM (11.0.13+8-LTS mixed mode):

Threads class SMR info:
_java_thread_list=0x000001d5d48ac690, length=13, elements={
0x000001d5d38ba000, 0x000001d5d38bb800, 0x000001d5d413b800, 0x000001d5d413c800,
0x000001d5d413e000, 0x000001d5d4142000, 0x000001d5d414d000, 0x000001d5d4151800,
0x000001d5d42ae800, 0x000001d5d48ad000, 0x000001d5bca3f000, 0x000001d5d4d8d000,
0x000001d5d51f3800
}

"Reference Handler" #2 daemon prio=10 os_prio=2 cpu=0.00ms elapsed=255.13s tid=0x000001d5d38ba000 nid=0x5808 waiting on condition  [0x00000063d59ff000]
   java.lang.Thread.State: RUNNABLE
        at java.lang.ref.Reference.waitForReferencePendingList([email protected]/Native Method)
        at java.lang.ref.Reference.processPendingReferences([email protected]/Unknown Source)
        at java.lang.ref.Reference$ReferenceHandler.run([email protected]/Unknown Source)

"Finalizer" #3 daemon prio=8 os_prio=1 cpu=0.00ms elapsed=255.14s tid=0x000001d5d38bb800 nid=0x1c48 in Object.wait()  [0x00000063d5aff000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait([email protected]/Native Method)
        - waiting on <0x00000000cff08f98> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove([email protected]/Unknown Source)
        - waiting to re-lock in wait() <0x00000000cff08f98> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove([email protected]/Unknown Source)
        at java.lang.ref.Finalizer$FinalizerThread.run([email protected]/Unknown Source)

"Signal Dispatcher" #4 daemon prio=9 os_prio=2 cpu=0.00ms elapsed=255.12s tid=0x000001d5d413b800 nid=0x12b4 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Attach Listener" #5 daemon prio=5 os_prio=2 cpu=0.00ms elapsed=255.12s tid=0x000001d5d413c800 nid=0x4f70 runnable  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Service Thread" #6 daemon prio=9 os_prio=0 cpu=0.00ms elapsed=255.12s tid=0x000001d5d413e000 nid=0x704 runnable  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread0" #7 daemon prio=9 os_prio=2 cpu=250.00ms elapsed=255.13s tid=0x000001d5d4142000 nid=0x2258 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE
   No compile task

"C1 CompilerThread0" #10 daemon prio=9 os_prio=2 cpu=265.63ms elapsed=255.13s tid=0x000001d5d414d000 nid=0x5a20 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE
   No compile task

"Sweeper thread" #11 daemon prio=9 os_prio=2 cpu=0.00ms elapsed=255.14s tid=0x000001d5d4151800 nid=0x4f04 runnable  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Common-Cleaner" #12 daemon prio=8 os_prio=1 cpu=0.00ms elapsed=255.10s tid=0x000001d5d42ae800 nid=0x5520 in Object.wait()  [0x00000063d61ff000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait([email protected]/Native Method)
        - waiting on <0x00000000cfe0cd20> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove([email protected]/Unknown Source)
        - waiting to re-lock in wait() <0x00000000cfe0cd20> (a java.lang.ref.ReferenceQueue$Lock)
        at jdk.internal.ref.CleanerImpl.run([email protected]/Unknown Source)
        at java.lang.Thread.run([email protected]/Unknown Source)
        at jdk.internal.misc.InnocuousThread.run([email protected]/Unknown Source)

"GanttProject Runner" #15 prio=5 os_prio=0 cpu=140.63ms elapsed=254.81s tid=0x000001d5d48ad000 nid=0x3760 waiting on condition  [0x00000063d64fe000]
   java.lang.Thread.State: WAITING (parking)
        at jdk.internal.misc.Unsafe.park([email protected]/Native Method)
        - parking to wait for  <0x00000000cfde0bf8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park([email protected]/Unknown Source)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await([email protected]/Unknown Source)
        at java.util.concurrent.LinkedBlockingQueue.take([email protected]/Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.getTask([email protected]/Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker([email protected]/Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run([email protected]/Unknown Source)
        at java.lang.Thread.run([email protected]/Unknown Source)

"DestroyJavaVM" #16 prio=5 os_prio=0 cpu=406.25ms elapsed=254.81s tid=0x000001d5bca3f000 nid=0x5a64 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Java2D Disposer" #18 daemon prio=10 os_prio=2 cpu=0.00ms elapsed=254.66s tid=0x000001d5d4d8d000 nid=0x58cc in Object.wait()  [0x00000063d65fe000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait([email protected]/Native Method)
        - waiting on <0x00000000cf148ca8> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove([email protected]/Unknown Source)
        - waiting to re-lock in wait() <0x00000000cf148ca8> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove([email protected]/Unknown Source)
        at sun.java2d.Disposer.run([email protected]/Unknown Source)
        at java.lang.Thread.run([email protected]/Unknown Source)

"AWT-Windows" #20 daemon prio=6 os_prio=0 cpu=31.25ms elapsed=254.67s tid=0x000001d5d51f3800 nid=0x2a2c runnable  [0x00000063d67ff000]
   java.lang.Thread.State: RUNNABLE
        at sun.awt.windows.WToolkit.eventLoop([email protected]/Native Method)
        at sun.awt.windows.WToolkit.run([email protected]/Unknown Source)
        at java.lang.Thread.run([email protected]/Unknown Source)

"VM Thread" os_prio=2 cpu=15.63ms elapsed=255.22s tid=0x000001d5d38b7000 nid=0x5254 runnable

"GC Thread#0" os_prio=2 cpu=0.00ms elapsed=255.24s tid=0x000001d5bca57800 nid=0x5310 runnable

"G1 Main Marker" os_prio=2 cpu=0.00ms elapsed=255.24s tid=0x000001d5bca75800 nid=0x54fc runnable

"G1 Conc#0" os_prio=2 cpu=0.00ms elapsed=255.24s tid=0x000001d5bca77800 nid=0x5fac runnable

"G1 Refine#0" os_prio=2 cpu=0.00ms elapsed=255.24s tid=0x000001d5bcb1d800 nid=0x1168 runnable

"G1 Young RemSet Sampling" os_prio=2 cpu=0.00ms elapsed=255.24s tid=0x000001d5bcb1e800 nid=0x56b8 runnable
"VM Periodic Task Thread" os_prio=2 cpu=0.00ms elapsed=255.13s tid=0x000001d5d42d7800 nid=0x47bc waiting on condition

JNI global refs: 20, weak refs: 0

Heap
 garbage-first heap   total 262144K, used 15360K [0x00000000c0000000, 0x0000000100000000)
  region size 1024K, 17 young (17408K), 0 survivors (0K)
 Metaspace       used 12601K, capacity 12989K, committed 13056K, reserved 1060864K
  class space    used 1353K, capacity 1512K, committed 1536K, reserved 1048576K

I have dug only so deep, so far. This thread on StackOverflow was both enlightening and also not at all helpful. Will return to this as time allows. Further advice welcome, of course.

I don’t think that it matters. Can you try doing the same with GP 3.3, which uses newer Java 17?

Thanks, I’ll save myself some time and not dig in just yet, then.

I see identical behavior with GP 3.3, unfortunately.

A post was split to a new topic: Duke Curtis issue 2024-03-15

Hello, it seems my problem has been asked many times but I can’t solve my issue. I’ve installed GP this morning and I could work well for an hour.
As I was having a display issue I tried a change in an .ini file as advised somewhere in this help forum ([3.2] Display issue between 3.1 and 3.2). I could not restart, and the startup is blocked at displaying a frozen bee and the smiling penguin in the task bar. So I uninstalled , reinstalled, uninstalled again, tried to install Java, then liberica. Nothing changes.
Any idea ?

First try removing .ganttproject.d folder from your home directory.

Thanks Dmitry for being so fast to answer. But, after removing this folder and restarting the computer, the penguin keeps laughing at me and the bee remains frozen on my screen.

Can you run ganttproject.bat from the terminal window and post the output?

Yes

PS C:\Program Files (x86)\GanttProject-3.3>  .\ganttproject.bat
mars 22, 2024 8:15:42 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$getVersionLayerStoreDirs$5
PR╔CIS: Path `plugins` is not absolute. We'll try resolving it relative to user.dir=C:\Program Files (x86)\GanttProject-3.3
mars 22, 2024 8:15:42 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime build
PR╔CIS: We will run with the following plugins:
mars 22, 2024 8:15:42 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
PR╔CIS: Plugin biz.ganttproject.impex.msproject2-3.3.3300 at C:\Program Files (x86)\GanttProject-3.3\plugins\base\biz.ganttproject.impex.msproject2\plugin.xml
mars 22, 2024 8:15:42 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
PR╔CIS: Plugin org.ganttproject.chart.pert-3.3.3300 at C:\Program Files (x86)\GanttProject-3.3\plugins\base\org.ganttproject.chart.pert\plugin.xml
mars 22, 2024 8:15:42 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
PR╔CIS: Plugin biz.ganttproject.app.localization-3.3.3300 at C:\Program Files (x86)\GanttProject-3.3\plugins\base\biz.ganttproject.app.localization\plugin.xml
mars 22, 2024 8:15:42 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
PR╔CIS: Plugin biz.ganttproject.impex.ical-3.3.3300 at C:\Program Files (x86)\GanttProject-3.3\plugins\base\biz.ganttproject.impex.ical\plugin.xml
mars 22, 2024 8:15:42 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
PR╔CIS: Plugin org.ganttproject.impex.htmlpdf-3.3.3300 at C:\Program Files (x86)\GanttProject-3.3\plugins\base\org.ganttproject.impex.htmlpdf\plugin.xml
mars 22, 2024 8:15:42 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
PR╔CIS: Plugin net.sourceforge.ganttproject-3.3.3300 at C:\Program Files (x86)\GanttProject-3.3\plugins\base\ganttproject\plugin.xml
mars 22, 2024 8:15:42 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
PR╔CIS: Plugin biz.ganttproject.app.libs-3.3.3300 at C:\Program Files (x86)\GanttProject-3.3\plugins\base\biz.ganttproject.app.libs\plugin.xml
mars 22, 2024 8:15:42 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
PR╔CIS: Plugin biz.ganttproject.core-3.3.3300 at C:\Program Files (x86)\GanttProject-3.3\plugins\base\biz.ganttproject.core\plugin.xml
mars 22, 2024 8:15:42 AM com.bardsoftware.eclipsito.runtime.Runner run
PR╔CIS: Command line args: [-log, true]
mars 22, 2024 8:15:42 AM com.bardsoftware.eclipsito.runtime.Runner run
PR╔CIS: Launching application=net.sourceforge.ganttproject.GanttProject

and then freezes…

Can you add this line at the very beginning of ganttproject.bat and try again?

SET JAVA_HOME="runtime"

It does not change

The terminal message blocks at the same place

@echo off

SET JAVA_HOME="runtime"
SET GP_HOME=.

SET "JAVA_COMMAND=%JAVA_HOME%\bin\java.exe"
IF "%JAVA_HOME%"=="" SET JAVA_COMMAND=java

SET LOCAL_CLASSPATH=%GP_HOME%\eclipsito.jar;%GP_HOME%\lib\slf4j-api-2.0.4.jar;%GP_HOME%\lib\slf4j-jdk14-2.0.4.jar;%GP_HOME%
SET JVM_ARGS=-Dgpcloud=prod -Dorg.jooq.no-logo=true -Xmx2048m  -ea -Dsun.java2d.d3d=false
SET "ECLIPSITO_ARGS=--verbosity 4  --version-dirs plugins;~/.ganttproject.d/updates --app net.sourceforge.ganttproject.GanttProject"
SET "JAVA_EXPORTS=--add-exports javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED --add-exports javafx.base/com.sun.javafx=ALL-UNNAMED --add-exports javafx.base/com.sun.javafx.event=ALL-UNNAMED  --add-exports javafx.base/com.sun.javafx.logging=ALL-UNNAMED --add-exports javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED --add-exports javafx.controls/com.sun.javafx.scene.control.skin=ALL-UNNAMED --add-exports javafx.controls/com.sun.javafx.scene.control.skin.resources=ALL-UNNAMED --add-exports javafx.controls/com.sun.javafx.scene.control.inputmap=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.scene.traversal=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.tk=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.util=ALL-UNNAMED --add-opens java.desktop/sun.swing=ALL-UNNAMED"

SET BOOT_CLASS=com.bardsoftware.eclipsito.Launch

"%JAVA_COMMAND%" -classpath "%CLASSPATH%;%LOCAL_CLASSPATH%" %JVM_ARGS% %JAVA_EXPORTS% %BOOT_CLASS% %ECLIPSITO_ARGS% -log true  %1 %2 %3 %4 %5 %6
if %ERRORLEVEL% EQU 9009 goto ERROR_NO_JAVA
goto END

:ERROR_NO_JAVA
echo "Please set up JAVA_HOME variable"

:END

Of course this is my “ganttproject.bat” modified as requested