Pack200 Working?

I changed my web server (Apache) to distribute the JWS jar files using pack200. I did it based on the following tutorial:
http://joust.kano.net/weblog/archive/2004/10/16/pack200-on-apache-web-server/

The JWS download should have decrease from 2.3MB->1.4MB with pack200. However, it still shows 2.3MB.

Did I do something wrong??? Or does JWS just display the original file size (2.3MB), even though the actual download is 1.4MB?

That’s the JNLP:
http://www.aevumobscurum.com/original/webstart/AevumObscurum.jnlp
How do I find out if it is working???

Also shows 2.3mb here. With my pack200 stuff it displays the p200 size (if a 1.5+ jws client is used).

However, I’m using a redirect script (and mod rewrite voodoo) [details]. I did it like that because its totally automatic. I only put the files there and the script checks which one is there and redirects accordingly. Much nicer than having to fiddle around with those maps each time.

For checking if it actually works as it should I wrote a little app which displays some text which is read from some txt file in the jar. I simply changed the text for the different packages to see if I get the right one.

http://kaioa.com/jws/jnlp_na/TestTank.jnlp (edit: use ‘R’ and ‘F’ for some silly action)
With windows and 1.5+ the displayed filesize is 480kb (instead of 992kb).

Thanks! That was very helpful. I guess it wasn’t working. I think it is ok now. It’s available at:
http://www.aevumobscurum.com/original/webstart2/AevumObscurum.jnlp
The download should have decreased to 1.4MB?

Regarding the maps; I wrote an ant task which generates everything: .jar + .jar.pack.gz + .jar.var files! I just hit the “build webstart” button and everything is build. I agree, I wouldn’t want to create the .var files from hand either…

The download should have decreased to 1.4MB?

Affirmative.

Oh and yea… ant is surely a nice way to do that (but I still dont like that extra clutter ;)).

I like your idea too! Although it requires PHP or some scripting language! I guess neither solution is perfect ;D