my programs gives me
Exception in thread “JavaFX Application Thread” java.lang.UnsatisfiedLinkError , i try everthing in the java fx documentation but it still dont work, i put the entire exeption below so you can see it, if anybody could help me i would be nice, thank you.
package sonic;
import javafx.application.Application;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.text.Text;
import javafx.stage.Stage;
/**
*
* @author nightdragon
*/
public class Sonic extends Application{
private Parent createContent() {
return new StackPane(new Text("Hello World"));
}
@Override
public void start(Stage stage) throws Exception {
//stage.setScene(new Scene(createContent(),300,300));
//stage.show();
}
public static void main(String[] args) {
launch(args);
// TODO code application logic here
}
}
Exception in thread "JavaFX Application Thread" java.lang.UnsatisfiedLinkError: 'java.util.Map com.sun.glass.ui.gtk.GtkApplication.getPlatformPreferences()'
at [email protected]/com.sun.glass.ui.gtk.GtkApplication.getPlatformPreferences(Native Method)
at [email protected]/com.sun.javafx.tk.quantum.QuantumToolkit.runToolkit(QuantumToolkit.java:366)
at [email protected]/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$startup$10(QuantumToolkit.java:290)
at [email protected]/com.sun.glass.ui.Application.lambda$run$1(Application.java:154)
at [email protected]/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at [email protected]/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$10(GtkApplication.java:264)
at java.base/java.lang.Thread.run(Thread.java:1583)
i dont know what to do ,or how can i solve this, i am using netbeans in his 21 version and linux ubuntu, somebody has a similar and a way that i can solve it?
New contributor
Night Dragon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.