package test;
import java.io.IOException;
import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.examples.LwjglInitHelper;
import de.lessvoid.nifty.nulldevice.NullSoundDevice;
import de.lessvoid.nifty.renderer.lwjgl.render.LwjglRenderDevice;
import de.lessvoid.nifty.sound.openal.OpenALSoundDevice;
import de.lessvoid.nifty.spi.time.impl.AccurateTimeProvider;
public final class Test {
private Test(){
}
public static void main(final String[] args) throws IOException {
if (!LwjglInitHelper.initSubSystems("Nifty Hello World")) {
System.exit(0);
}
// create nifty
Nifty nifty = new Nifty(new LwjglRenderDevice(), new OpenALSoundDevice(),
LwjglInitHelper.getInputSystem(), new AccurateTimeProvider());
}
}
我正在尝试使用 NiftyGUI,但它甚至无法通过该nifty = new Nifty
部分。我有所有的依赖项。
这是我得到的错误Nifty nifty = new Nifty(
:
Caused by: java.lang.ClassNotFoundException: org.bushe.swing.event.EventTopicSubscriber
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more
有人可以帮我解决这个问题吗?我什至尝试过导入每个漂亮的库。