Login  Register

Looking for examples of Nifty Gui + JOGL2

Posted by juankprada on Feb 23, 2013; 5:37am
URL: https://forum.jogamp.org/Looking-for-examples-of-Nifty-Gui-JOGL2-tp4028323.html

Hello guys,

I've been trying to make nifty work with JOGL without success: Right now my initialization code for nifty is as follows:

         inputSystem = new JoglInputSystem();

        niftyGuI = new Nifty(
                new JoglRenderDevice();,
                null,
                inputSystem,
                new AccurateTimeProvider()
        );



but I keep getting this exception: Exception in thread "main" java.lang.NoClassDefFoundError: org/bushe/swing/event/EventService
        at com.soa.game.Game.onStart(Game.java:70)
        at com.soa.game.Main.main(Main.java:9)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.lang.ClassNotFoundException: org.bushe.swing.event.EventService
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

There must be something I am doing very wrong, but i coulndt find any information about how to work with nifty and JOGL.
so, do you know whats my issue here, or do you know of some tutorial I can work with?

Best regards