The following tutorial assumes you have installed Debian Etch.
If you have already installed Java, please skip this part.
You will find Sun Java in the non-free repository, so you will have to update your apt-get source list.
Edit /etc/apt/sources.list, append 'contrib non-free' to deb locations
Then perform an 'apt-get update'. Once updated, install Java by issuing an 'apt-get install sun-java5-jdk'.
Before you can compile lwjgl, please check it out from SVN by issuing the following command: svn co https://java-game-lib.svn.sourceforge.net/svnroot/java-game-lib/trunk/LWJGL lwjgl
Then enter the lwjgl directory and issue the following commands:
Please note. If you are compiling on an 64bit platform, the compile scripts will generate a liblwjgl64.so otherwise a liblwjgl.so is produced
If you want to compile the optional parts, you will have to fix the fmod dependency by downloading it from http://fmod.org.
To test FMOD, please copy the libfmod-<version>.so to the lwjgl/libs/linux folder as libfmod.so