Posted by
Sven Gothel on
Feb 01, 2011; 5:47pm
URL: https://forum.jogamp.org/Re-incorrect-files-in-stable-release-tp2399074.html
On Tuesday, February 01, 2011 18:21:03
[hidden email] wrote:
> Hi,
> First, thanks so much for taking on maintaining JOGL et. al. - it's a valuable service and greatly appreciated by the community.
Thank you.
Due to community interest and allow a followup discussion,
I have added our forum/ml for this purpose - hope that's OK with you.
>
> Now to the point: on the JOGL "Stable Release" page, a number of files (e.g. "jog-all.jar", "gluegen-rt.jar", and "nativewindow.all.jar") which are supposed to download jar files actually download gzipped versions of those files. For most people this isn't a problem -- unless you don't have a tool that recognizes a .gz file (and aren't sophisticated enough to deal with that). Anyway, it's confusing -- and I don't think this is what you intended, since each of those files is immediately followed by a link to a .gz file of the same name.
Well, it's a 'on-the-fly' solution to offer the file as compressed as possible
due to the client's 'Accept-Encoding (AE) field'.
You can verify this by fetching the file with 'wget' for example,
which doesn't offer any encoding, hence the plain JAR file is received.
Order of compression, if availble by the client via the AE is:
- pack200-gzip
- gzip
- plain
Our apache .htaccess file at
http://jogamp.org/deployment/ :
+++
AddType application/x-java-archive .jar
AddType application/x-java-jnlp-file .jnlp
<Files *.jar.pack.gz>
AddEncoding pack200-gzip .jar
RemoveEncoding .gz
</Files>
RewriteEngine on
RewriteCond %{HTTP:Accept-Encoding} pack200-gzip
RewriteCond %{REQUEST_FILENAME}.pack.gz -f
RewriteRule ^(.*\.jar)$ $1.pack.gz [NC,L]
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*\.jar)$ $1.gz [NC,L]
+++
This is explained here:
http://www.thrysoee.dk/pack200/http://download.oracle.com/javase/1.5.0/docs/guide/deployment/deployment-guide/pack200.htmlHope this helps ..
Sure, if there is a better solution _without_ using a servlet or whatsoever
we are happy to learn about it.
Note:
Manual download of these files is not a recommended choice anyways.
If you like to fetch the files for manual deployment,
please download the platform's zip folders in the archive subfolder:
http://jogamp.org/deployment/webstart/archive/>
> Sincerely,
> John Clevenger
> Computer Science Dept.
> Cal State U, Sacramento
>
Cheers, Sven