This discussion is archived
3 Replies Latest reply: Jan 18, 2010 11:15 PM by 791266 RSS

How to use pack200 with IIS?

843802 Newbie
Currently Being Moderated
I am trying to set up a Java applet that uses the Batik SVG Viewer library, which is several MB in size. In order to speed up downloads, I would like to compress the library with pack200, but there's one problem: I don't know what to do with the servlet on the deployment guide page (http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/pack200.html) because I've never used servlets before. I found a page with instructions as to how to set up pack200 without a servlet in Apache (http://joust.kano.net/weblog/archive/2004/10/16/pack200-on-apache-web-server/) but this isn't much help because my Web server uses IIS. Could someone please explain to me how to do what is done on the Apache tutorial page in IIS, or at least how to get pack200 working at all, by any method, on an IIS server?
  • 1. Re: How to use pack200 with IIS?
    843802 Newbie
    Currently Being Moderated
    Never mind; I figured it out myself. You just have to set a HTTP header on the .pack.gz files to "content-encoding: pack200-gzip", which means right-clicking each file in the IIS manager and manually setting the header under the "HTTP Headers" tab. Maybe there's another way, but this is good enough for me.
  • 2. Re: How to use pack200 with IIS?
    843802 Newbie
    Currently Being Moderated
    Did you actually get IIS to serve up pack200 jars? I have been struggling to get IIS to do this. Most of the information I found by googling indicates that it may not be possible unless you deploy a servlet and use JNLP. I have an applet (not currently deployed with JNLP) and I configured IIS with the appropriate MIME type (.jar.pack.gz application/x-java-pack200) and I enabled http compression of static and application files. I also did the http header adjustment you mentioned previously, with no luck. Your help would be greatly appreciated.
  • 3. Re: How to use pack200 with IIS?
    791266 Explorer
    Currently Being Moderated
    >

    Hi,

    Please don't resurrect old threads, and don't hijack threads. Create a new thread if you have a question.

    I'm locking this thread.

    Thanks
    Kaj

    Ps. And don't cross-post when you create that thread.