Include Jogl source in your favourite IDE

Hi. Most of today’s IDEs support to reference the source files of an included JAR library so that while typing method calls etc to this library, you get hints with the named parameters, instead of the naked “int p0, int p1”, etc.

For Jogl I downloaded the source files from the CVS and while it works basically, the large files GL.java and GLU.java are missing (I think they’re ANT-builded from the C sources?). Is there a very simple way to get them from the java.dev.net site or somewhere else without having to go the “build the source youself” route?
Because basically I don’t want to compile the sources, I’m very happy with the handy release build(s) on Jogl’s java.dev.net page. :slight_smile:

Right now the only way to get those source files is to build the source tree. It really isn’t difficult to do so. All you really need are Ant and ANTLR. You don’t even need a working C compiler if all you care about are GL.java and GLU.java. We’ve avoided checking in these or any of the other generated sources into the source tree because of the inevitable versioning problems that will arise.

Out of curiosity, do I need to recompile the linux shared library if I’m using an X server that provides it’s own libGL.so ?

And while I’m at it, I’ve got the source code, but the source contains some “assert” calls that don’t seem to exist in the standard java api. Is there a 3rd party package dependency I’m missing (i’ve been lazy to dat and haven’t check the howto-build) but I thought I’d just check while I’m here.

Thanks.

Greg.

Thanks Ken for the answer.

[quote]And while I’m at it, I’ve got the source code, but the source contains some “assert” calls that don’t seem to exist in the standard java api.
[/quote]
The handy assert keyword has been introduced with Java 1.4 (or 1.3?), so you’ve to add the “-source 1.4” switch when calling javac.

[quote]Out of curiosity, do I need to recompile the linux shared library if I’m using an X server that provides it’s own libGL.so?
[/quote]
No. The run-time linker takes care of this.