Gluonfx NoclassDeffoundErrorJava

Java-Forum
Anonymous
 Gluonfx NoclassDeffoundError

Post by Anonymous »

Ich bekomme < /p>

Code: Select all

Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:893)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.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.osThreadStartRoutine(WindowsPlatformThreads.java:143)
Caused by: java.lang.NoClassDefFoundError: Lcom/fazecast/jSerialComm/SerialPort;
at com.oracle.svm.jni.functions.JNIFunctions.FindClass(JNIFunctions.java:348)
at com.oracle.svm.jni.JNIOnLoadFunctionPointer.invoke(JNILibraryInitializer.java)
at com.oracle.svm.jni.JNILibraryInitializer.callOnLoadFunction(JNILibraryInitializer.java:69)
at com.oracle.svm.jni.JNILibraryInitializer.initialize(JNILibraryInitializer.java:126)
at com.oracle.svm.core.jdk.NativeLibrarySupport.addLibrary(NativeLibrarySupport.java:186)
at com.oracle.svm.core.jdk.NativeLibrarySupport.loadLibrary0(NativeLibrarySupport.java:142)
at com.oracle.svm.core.jdk.NativeLibrarySupport.loadLibraryAbsolute(NativeLibrarySupport.java:101)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:54)
Ich habe die Anforderungen befolgt unter https://docs.gluonhq.com/#_maven_archetype & https://docs.gluonhq.com/#platforms_windows
Project, das in Intellij J idee erstellt wurde, und ich bin mit Maaven. 3.8.8 < /p>
Ich verwende die native Tools -Eingabeaufforderung von X64 (mit Windows 11 Pro) mit den folgenden Zielen: < /p>

Code: Select all

mvn gluonfx:run
mvn gluonfx:runagent
mvn gluonfx:build
mvn gluonfx:nativerun
< /code>
Wenn com.fazecast.jserialcomm.Serialport nicht in das Projekt enthalten ist, kann ich alle 4 Tore gut ausführen, also denke ich, mein Setup ist richtig gemacht. Ziel.  < /p>
Dies ist mein 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>
Dies ist mein 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







Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post
  • Gluonfx unfledlinkError
    by Anonymous » » in Java
    0 Replies
    2 Views
    Last post by Anonymous
  • Gluonfx unfledlinkError
    by Anonymous » » in Java
    0 Replies
    4 Views
    Last post by Anonymous
  • Gluonfx unfledlinkerror / verwenden .dll in .jar beim Ausführen natives Bild
    by Anonymous » » in Java
    0 Replies
    3 Views
    Last post by Anonymous
  • ClassNotFoundException vs. NoClassDefFoundError
    by Guest » » in Java
    0 Replies
    13 Views
    Last post by Guest
  • Java.lang.NoClassDefFoundError: com/zaxxer/hikari/HikariConfig
    by Guest » » in Java
    0 Replies
    19 Views
    Last post by Guest