Skip to main content

size of Scenario.jar

4 replies [Last post]
Anonymous

For what it's worth... I was noticing that the generated Scenario.jar
seems larger than what I would expect, for such a minimal project. I
found that NetBeans (perhaps unsurprisingly) keeps debug info and
generates uncompressed JARs by default. Playing with various options
reveals the following:

378k -- default NetBeans output JAR (uncompressed, debug)
275k -- uncompressed JAR, no debug info
186k -- compressed JAR, debug info
142k -- compressed JAR, no debug info
59k -- pack200, no gzip
33k -- pack200, gzipped

I'm not planning to change any of these settings at the moment, but I
figured I'd send out this data before eggnog makes it vanish.

Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
For additional commands, e-mail: dev-help@scenegraph.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
campbell
Offline
Joined: 2003-06-24
Points: 0

I've just updated the NetBeans project to enable JAR compression for Scenario.jar... Later we can think about adding Pack200 support to our build process...

Chris

Patrick Wright

Hi Chris

Interesting numbers! One question about the pack200 + gzip
approach--is it possible (or do you know if it will be) to use this on
a JNLP or in an applet? I know pack200 is already supported, but this
combination is new to me (and I'm surprised gzip can still wring
anything out of the package).

Thanks
Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
For additional commands, e-mail: dev-help@scenegraph.dev.java.net

campbell
Offline
Joined: 2003-06-24
Points: 0

Hi Patrick,

The pack200 tool has built-in support for gzip compression, and .pack.gz files can be used from Java Plugin and Web Start, as long as you've got your server configured properly. Here are a couple links with more info:
https://jdk6.dev.java.net/deployment_advice.html#Pack200_in_Java_Plug_In...
http://blogs.sun.com/alanbur/entry/netbeans_jni_webstart_and_apache

I've heard that the Deployment team is trying to get rid of the server side requirement altogether; it appears that this is on the list for JDK 7:
http://bugs.sun.com/view_bug.do?bug_id=6378311

Thanks,
Chris

Patrick Wright

Hi Chris

Very way cool, thanks for the info. I knew about the server-side
requirement and it will be a relief when (if) it's gone.

Cheers and happy holidays
Patrick

On Dec 21, 2007 7:38 PM, wrote:
> Hi Patrick,
>
> The pack200 tool has built-in support for gzip compression, and .pack.gz files can be used from Java Plugin and Web Start, as long as you've got your server configured properly. Here are a couple links with more info:
> https://jdk6.dev.java.net/deployment_advice.html#Pack200_in_Java_Plug_In...
> http://blogs.sun.com/alanbur/entry/netbeans_jni_webstart_and_apache
>
> I've heard that the Deployment team is trying to get rid of the server side requirement altogether; it appears that this is on the list for JDK 7:
> http://bugs.sun.com/view_bug.do?bug_id=6378311
>
> Thanks,
> Chris
> [Message sent by forum member 'campbell' (campbell)]
>
> http://forums.java.net/jive/thread.jspa?messageID=251177
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
> For additional commands, e-mail: dev-help@scenegraph.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
For additional commands, e-mail: dev-help@scenegraph.dev.java.net