To set up Eclipse for building TWL, a couple steps are needed.
Before starting, you will need to download the following packages, and unzip them somewhere on your PC:
The contents of these files are included in the TWL required libraries archive:
http://twl.l33tlabs.org/demo/twl.zip
- Open the Eclipse preferences panel (Window menu, Preferences)
- Navigate to Java/Build Path/User Libraries
- Click "New" to add a User Library, name it "LWJGL". It is not a system library.
- Select "LWJGL" in the list, and click "Add JARs".
- Navigate to the LWJGL distribution directory, and select the following jar files: jinput.jar, lwjgl.jar, lwjgl_util.jar
- Click "New" to add another User Library, name it "XPP3". It is not a system library.
- Select "XPP3" in the list, and click "Add JARs".
- Navigate to the XPP3 distribution directory, and select the following jar files: xpp3-1.1.4c.jar
Once these steps are complete, TWL will compile.