Slick Forums

Discuss the Slick 2D Library
It is currently Sat Jun 24, 2017 3:49 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Error in beginning
PostPosted: Fri Feb 10, 2017 8:45 pm 
Offline

Joined: Fri Feb 10, 2017 8:41 pm
Posts: 1
Code:
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

public class Packt extends BasicGame  {

   
   public void init(GameContainer gc) throws SlickException {
      
   }
   
   public void render(GameContainer gc, Graphics g) throws SlickException {
      
   }
   
   
   public void update(GameContainer gc, int delta) throws SlickException {
      
   }
   
   
      public void init(GameContainer gc, StateBasedGame sbg) throws SlickException {
         
      }
      
      
      public void render(GameContainer gc, StateBasedGame sbg, Graphics g) throws SlickException {
         
      }
   
      
      public void update(GameContainer gc, StateBasedGame sbg,int DELTA) throws SlickException {
         
      }
   
   
   public Packt () {
        super ("trialsGame");
   }
   
   
   
   
   
   public static void main(String[] args) {
   
        try {
             AppGameContainer agc = new AppGameContainer(new Packt() );
             agc.setDisplayMode(400,400,false);
             agc.start();
            
           } catch(SlickException e) { e.printStackTrace();
          
          
          
           }
   }

}


If I run this code I receive error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
at javaGame.Packt.main(Packt.java:53)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
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


A hint.
This can be a problem, because I maybe have incorrectly installed slick2D. And I can nothing to do, because there is no new info: how to install at eclipse.
SO I had to follow newBoston tutorial, it was made in 2012.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group