if you copy the lesson2 folder to the root of your lwjgl installation and compile it, then enter the dir.
Then you should be able to issue this command to run it:
java -cp .;..\bin -Djava.library.path=..\libs\win32 Lesson2
due to some time changes you might want to change execute to this:
public void execute() {
// Initialize OpenAL and clear the error bit.
try {
AL.create();
} catch (LWJGLException le) {
le.printStackTrace();
return;
}
AL10.alGetError();
// Load the wav data.
if(loadALData() == AL10.AL_FALSE) {
System.out.println("Error loading data.");
return;
}
setListenerValues();
AL10.alSourcePlay(source.get(0));
// loop
long timeout = Sys.getTime() + (long)(0.1f * Sys.getTimerResolution());
System.out.println("Press ENTER to exit");
while(!kbhit()) {
if(Sys.getTime() > timeout) {
timeout = Sys.getTime() + (long)(0.1f * Sys.getTimerResolution());
System.out.println("move");
sourcePos.put(0, sourcePos.get(0) + sourceVel.get(0));
sourcePos.put(1, sourcePos.get(1) + sourceVel.get(1));
sourcePos.put(2, sourcePos.get(2) + sourceVel.get(2));
AL10.alSource(source.get(0), AL10.AL_POSITION, sourcePos);
}
}
killALData();
}