ERROR WHEN IMPORT PACKAGES

0

When I try to compile the main class (CraftMania.java) from the cmd it tells me that it can not import the project packages (it does not find them): link I know it has something to do with the classpath but I do not know what to do. I need help please.

< a href="https://i.stack.imgur.com/cCH0j.png">

    
asked by Mati Bonino 22.08.2018 в 00:47
source

1 answer

0

Welcome to the site!

As a suggestion, it is better to do that task with the help of some IDE, it is that by CMD one would have to reference the classpath one by one the necessary libraries of LWJGL ( Lightweight Java Game Library ) and Slick2D , I think they are like 11 jar files.

Then ...

  • With Eclipse, you only import the 'CraftMania' project:
  

File > Import > General > Existing Project into Workspace

  • Right click on the name of the project and add the libraries LWJGL and Slick2D :
  

Build Path > Configure Build Path ... > Libraries > Add External JARs ...   

  • The last thing is also quite important, that CraftMania project has a directory called natives ; it replaces its content with that of the native folder that was downloaded with lwjgl-2.9.3 in order to avoid a detestable error java.lang.LinkageError (given that the version of the libraries 2.9.3 is different from the one used to compile this project before).

I hope I have been as accurate and descriptive as possible.

    
answered by 22.08.2018 / 08:46
source