different jogl.jar for different platforms

Hi,

I am deploying my Java OpenGL app to different platforms and notice that JOGL has different jar files for each one of them. Is there any way to consolidate into one single jar file? Thanks

Aaron

The jogl.jar that is on java.net and referenced in the JOGL demos’ JNLP files is the same for all platforms and is the result of assembling the contents of the individual platforms’ jars. If you’re using Java Web Start then we would hope that you could just reference that jar in your own JNLP file.

Please file an RFE to have the official releases (which are really developer binaries) have this step be performed, and I’ll ask the gaming group to try to do it for the nightly builds as well.

I am confused. Where can I download the “super jogl.jar” ?
I clicked on the link * Precompiled binaries and documentation

and only found platform dependent download.

And where can I file the RFE ?? A web link would be very much appreciated!

Aaron

Uh, when i packaged my app with webstart i found that every binary dist. had its own jar+native pair of files. At first I thought the jars would be shared but each platform ended up having differently sized jar files.

Are the jar files really platform dependant? If not then the builds should be fixed to produce one identical jar file for all plaforms. If not, why not? ???

Unfortunately the last time I produced an “official” release I neglected to build the “dist” target in the JOGL build.xml which assembles one platform-independent jogl.jar out of the different platform-specific jars.

We’re going to try to have the nightly builds perform this process. In the meantime the JNLP files for the jogl-demos demonstrations have a link to a jogl.jar that will be kept up-to-date and signed by the gaming group at Sun. You can file an RFE on the “Issues” page linked to off the main JOGL page on java.net; you’ll probably need to register as an Observer of the JOGL project first if you haven’t already.

jogl.jar currently generated by build script is platform-dependent - it containg jogl interface, as well as platform-dependent classes (inplementation).

I will say that different jogl.jar files for every platform is good at least because of you probably don’t want to deploy X11- and MacOS-related classes to Windows machine.

Yuri

I disagree. If the jar files are system specific, you’d need separate downloads for each platform for games that use jogl.

Well, if you are using JavaWebStart, then you anyway deploy different native libs, so deploying native jars will also be no problems.

But if you are providing download pack, then it may be good to have everything bundled together. This depends on what is your main concern - download size, easy-to-install, need in manual installation etc.

Yuri

I fully agree with Ken: there should only be one Jogl.jar for all platforms. It’s still confusing “enough” to have different .DLL/.SO/xzy for the different platforms.

Webstart isn’t a solution for people wishing to deploy their applications without Internet (CD, Intranet, etc…). Furthermore Java users/developers are used to the fact that a .JAR file has been platform neutral.

Btw the X11 specifc stuff of Jogl.jar named net.java.games.jogl.impl.x11.* zips to 115 KB.

/me hates X11

Platform specific jar == daft. That’s one reason I don’t like SWT.

Cas :slight_smile: