विद्यालय के लिए गेम पर काम करने की कोशिश कर रहा है और मुझे ग्रहण का उपयोग करने की कोशिश करते समय "java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException" प्राप्त करना जारी रहता है। कोई विचार? यहां मेरा कोडjava.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
package javagame;
import org.newdawn.slick.*;
import org.newdawn.slick.state.*;
public class Game extends StateBasedGame{
private static final String GAME_NAME = "TEST";
private static final int MENU = 0;
private static final int PLAY = 1;
public Game(String GAME_NAME){
super(GAME_NAME);
this.addState(new Menu(MENU));
this.addState(new Play(PLAY));
}// end constructor
public void initStatesList(GameContainer gc) throws SlickException{
this.getState(MENU).init(gc, this);
this.getState(PLAY).init(gc, this);
this.enterState(MENU);
}//end initStateList method
public static void main(String[] args) {
AppGameContainer appgc;
try{
appgc = new AppGameContainer(new Game(GAME_NAME));
appgc.setDisplayMode(640, 360, false);
appgc.start();
}//end try
catch(SlickException e){
e.printStackTrace();
}//end catch
}//end main method
}//end Game class
और पूर्ण त्रुटि मुझे मिल रही है।
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
at javagame.Game.main(Game.java:27)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
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
और मुझे पूरा यकीन है कि मेरे पास यह सेट सही है। http://i.imgur.com/YD77T2C.png
क्या यह 'ऑर्डर एंड एक्सपोर्ट' टैब में निर्यात किया गया lwjgl जार है? – polypiel
यह सुनिश्चित नहीं है कि आप वास्तव में क्या पूछ रहे हैं, लेकिन यह मेरा ऑर्डर और निर्यात टैब http://i.imgur.com/nCaBAmG.png – tracebell2000
क्या आपने सही मूल निवासी सेट किए हैं? – Joehot200