Reply – The error "javax.media.opengl.GLDrawableFactory.initSingleton()"
Your Name
Subject
Message
or Cancel
In Reply To
The error "javax.media.opengl.GLDrawableFactory.initSingleton()"
— by ironman ironman
I am doing a globe project on linux platform using javaFX and creating the scene using the gluon scene builder but while i run the project i get the following error.

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
        at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: Exception in Application start method
        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(LauncherImpl.java:182)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchMethodError: javax.media.opengl.GLDrawableFactory.initSingleton()V
        at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1652)
        at javax.media.opengl.GLProfile.access$000(GLProfile.java:77)
        at javax.media.opengl.GLProfile$1.run(GLProfile.java:142)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:128)
        at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:2149)
        at javax.media.opengl.GLProfile.get(GLProfile.java:931)
        at javax.media.opengl.GLProfile.get(GLProfile.java:960)
        at javax.media.opengl.GLProfile.getMaxFixedFunc(GLProfile.java:713)
        at gov.nasa.worldwind.Configuration.getMaxCompatibleGLProfile(Unknown Source)
        at gov.nasa.worldwind.Configuration.getRequiredGLCapabilities(Unknown Source)
        at gov.nasa.worldwind.awt.WorldWindowGLJPanel.<init>(Unknown Source)
        at controller.RootController.initializeComponent(RootController.java:175)
        at controller.RootController.initialize(RootController.java:193)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
        at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
        at controller.MainDemo.start(MainDemo.java:30)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)
        at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
        at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
        at com.sun.glass.ui.gtk.GtkApplication.lambda$null$48(GtkApplication.java:139)

What can I do to resolve this error?