SET PATH=%PATH%;.\libs\windows (run this once)java -cp bin -Djava.library.path=libs/windows org.lwjgl.test.opengles.Gears
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./libs/linux (run this once)java -cp bin -Djava.library.path=libs/linux org.lwjgl.test.opengles.Gears
Btw, if you seriously plan to use this on an ARM device, you will probably have to do a few changes to the current source code. First is removing anything AWT related. Even if the VM you run on supports AWT, you really want to avoid touching AWT, it's too much memory bloat for mobile devices. Second is changing LWJGL to assume 32-bit pointers (also avoid anything long/double related). This requires more changes, but it's doable.