fair-acc / chart-fx

A scientific charting library focused on performance optimised real-time data visualisation at 25 Hz update rates for data sets with a few 10 thousand up to 5 million data points.
GNU Lesser General Public License v3.0
508 stars 94 forks source link

com.sun.javafx.application.PlatformImpl startup WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @...' #640

Closed yezhengli-Mr9 closed 1 year ago

yezhengli-Mr9 commented 1 year ago

Describe the bug A clear and concise description of what the bug is. Please use the issue feature only for actual bugs. If you have usage questions or are unsure if/how a certain functionality is supported in chart-fx please use the q&a secton in the discussions feature or our gitter channel.

com.sun.javafx.application.PlatformImpl startup
WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @...'

then get stuck in the terminal. For JavaFX on my side, should at least have pop-up window https://github.com/openjfx/samples/issues/74.

To Reproduce Steps to reproduce the behavior. Ideally the problem can be reproduced in the samples provided with chart-fx or by adapting them slightly. Alternatively provide a minimal working example.

mvn exec:java

for the one in README.md.

public class SimpleChartSample extends Application {

similar to https://github.com/fair-acc/chart-fx/blob/ed86318c5a1bde23d285633a94860648aee5fb32/chartfx-samples/src/main/java/io/fair_acc/sample/chart/SimpleChartSample.java#L21 which renamed filename from https://github.com/fair-acc/chart-fx/blob/ed86318c5a1bde23d285633a94860648aee5fb32/README.md?plain=1#L104

Environment:

 - ChartFx version: [master, 11.2.2, ...]

11.3.0

yezhengli-Mr9 commented 1 year ago

Seems likely relevant to MacOS Sonoma https://stackoverflow.com/questions/77223963/javafx-window-takes-a-while-to-load-and-getting-an-error-in-eclipse. However, when I try to follow javafx-sdk-20.0.2 https://bugs.openjdk.org/browse/JDK-8315657

<dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-controls</artifactId>
            <version>20.0.2</version>
        </dependency>

it confronts

com.sun.javafx.application.PlatformImpl startup
WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @...'
+ Nov 14, 2023 7:08:51 PM com.sun.glass.ui.mac.MacApplication lambda$waitForReactivation$6
+ WARNING: Timeout while waiting for app reactivation

The original issue exists MacOS Monterey as well.

yezhengli-Mr9 commented 1 year ago

https://github.com/fair-acc/chart-fx/blob/ed86318c5a1bde23d285633a94860648aee5fb32/chartfx-samples/src/main/java/io/fair_acc/sample/chart/SimpleChartSample.java#L21 works good. README.md code forSimpleChartSample not a complete one.