Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8411405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:24:52+00:00 2026-06-10T00:24:52+00:00

Hi I am trying to make a java game using slick2D and lwjgl 2.8.4.

  • 0

Hi I am trying to make a java game using slick2D and lwjgl 2.8.4. But I am not being able to implement AppGameContainer class. It causes a run time error. My code is given below:

  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;


  public class Main extends BasicGame{

   public Main(String title) {
    super(title);
    // TODO Auto-generated constructor stub
   }




   public static void main(String args[]) throws SlickException{
    AppGameContainer app = new AppGameContainer(new Main("Tower Defence"));
    app.setDisplayMode(800, 600, false);
        app.start();

   }

   @Override
   public void render(GameContainer container, Graphics g)
        throws SlickException {
    // TODO Auto-generated method stub

   }

   @Override
   public void init(GameContainer container) throws SlickException {
    // TODO Auto-generated method stub

   }

   @Override
   public void update(GameContainer container, int delta)
        throws SlickException {
    // TODO Auto-generated method stub

   }

  }

Then I get the following run time error:
enter image description here

my package explorer in eclipse is given below:

enter image description here

How can I avoid this error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T00:24:53+00:00Added an answer on June 10, 2026 at 12:24 am

    The graphics card driver was not installed. Installation of the graphics card driver solved the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a copy of MineCraft in Java using OpenGL (LWJGL). The
I am trying to make a board game in Java using AWT. I want
I am trying to make a 3-d java lwjgl game that stores the data
I am trying to make a very basic game with Java and I am
I need to make a game in Java for a project. What I'm trying
I'm trying to make a game (using irrlicht engine with c++) where you can
I was trying to make a board game in java and i am stuck
I'm trying to make an small tower defender game in Java. I have a
For quite awhile I have been trying to make a simple game in Java
Trying to make a Grid Like this using java and I'm assuming a 2d

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.