what's the difference between JOGL and LWJGL?

who can tell me the diifference between JOGL and LWJGL?
why you choose JOGL instead of LWJGL?
thanks !

Not a real big difference.
LWJGL comes with some great maths libraries for linear algebra.

JOGL uses the AWT Event Dispatch Thread for Input, which isn’t a big deal at all if you buffer your inputs(which I do), while LWJGL uses a form or another of JInput.
LWJGL is much faster to setup, while JOGL takes a bit longer and requires you to know how to deal with Swing/AWT properly otherwise you will have performance issues.
When JOGL becomes included with an official release of Java, the JNI overhead will be completely removed; I was previously told that Sun’s libraries don’t suffer from JNI overhead due to the compiler trusting the source and compiling it directly into machine code.

JOGL is Sun’s official OpenGL port to Java.
LWJGL isn’t official and JNI overhead will remain with it however it really doesn’t effect performance on a noticeable level.

[quote=“K.I.L.E.R,post:2,topic:27131”]
I would love to here a bit more details about this. I’m aware that the JVM compiler does know about certain intrinsic functions (like in Math.*), but was unaware that it was even possible for JNI overhead to be eliminated in the manner you describe.

(Start a thread in the Performance forum if you have info about this…)