Я получаю < /p>
Исключение в потоке "main" java.lang.runtimeexception: Исключение в методе запуска приложения
at com.sun.javafx.application.launcherimpl.launchapplication1 (stasterimpl.java:893)
at at at at at at at at at at at at at at at at at at at at at at com.sun.javafx.application.launcherimpl.lambda $ unwardapplication $ 2 (rastermpl.java:195)
at java.lang.thread.run (thread.java:833)
at com.oracle.svm.core.thread.platformthreads.threadstartroutine (platformThreads.java:704)
at com.oracle.svm.core.windows.windowsplatformthreads.osthreadstartin Lcom /fazecast /jserialcomm /serialport;
at com.oracle.svm.jni.functions.jnifunctions.findclass (jnifunctions.java:348)
at com.oracle.svm.jni.jnionfunctionpointer.invoke (jnilibraryin.java. com.oracle.svm.jni.jnilibraryinitialization.callonloadfunction (jnilibraryinitializer.java:69)
на com.oracle.svm.jni.jnilibraryinitializ com.oracle.svm.core.jdk.nativelibrarysupport.addlibrary (nativelibrarysupport.java:186)
at com.oracle.svm.core.jdk.nativelibrarysupport.loadlibrary0 (NativeLibrary.java:142) com.oracle.svm.core.jdk.nativelibrarysupport.loadlibrararyabsolute (nativelibrarysupport.java:101)
at java.lang.classloader.loadlibrary (ClassLoader.java:54) < /em> < /p>
Я следовал на требованиях. https://docs.gluonhq.com/#_maven_archetype & https://docs.gluonhq.com/#platforms_windows написано 3.8.8 < /p>
Я использую командную строку x64 Native Tools (используя Windows 11 Pro) с целями ниже: < /p>
mvn gluonfx:run
mvn gluonfx:runagent
mvn gluonfx:build
mvn gluonfx:nativerun
Когда com.fazecast.jserialcomm.serialport не включен в проект, я могу запустить все 4 гола, так что я думаю, что моя установка сделана правильно. /> Это мой mre: < /p>
package org.example;
import com.fazecast.jSerialComm.SerialPort;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class App extends Application {
@Override
public void start(Stage stage) {
String name = "";
SerialPort[] portsArray = SerialPort.getCommPorts();
for (SerialPort port : portsArray) {
System.out.println(port.getDescriptivePortName());
name = port.getDescriptivePortName();
}
var label = new Label(name);
var scene = new Scene(new StackPane(label), 640, 480);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch();
}
}
< /code>
Это мой pom.xml: < /p>
4.0.0
org.example
untitled
1.0-SNAPSHOT
UTF-8
11
11
org.openjfx
javafx-controls
24
com.fazecast
jSerialComm
2.11.0
com.gluonhq
gluonfx-maven-plugin
1.0.26
org.example.App
org.apache.maven.plugins
maven-compiler-plugin
3.8.0
11
org.openjfx
javafx-maven-plugin
0.0.6
default-cli
org.example.App
Подробнее здесь: https://stackoverflow.com/questions/795 ... founderror