You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Vicente de Rivera III <th...@gmail.com> on 2009/08/26 13:51:02 UTC

how to reduce Pivot Jar size

I'm almost done with our school project and I already hosted it at Google
App Engine,
http://lazychick-4ita.appspot.com/
Any way to remove unused classes from the Pivot jars to reduce download
size?

thanks,
-
thirdy

Re: how to reduce Pivot Jar size

Posted by Noel Grandin <no...@gmail.com>.
Hi

If you're looking at reducing JAR size, I can recommend the
open-source ProGuard project.

Also, take special note of the JAR signing procedure when using
pack200, or you can get some very weird errors.

Regards, Noel.

On Tue, Sep 1, 2009 at 04:16, Vicente de Rivera
III<th...@gmail.com> wrote:
> Hi,
>
> I used this guide
> http://java.sun.com/javase/6/docs/technotes/guides/jweb/tools/pack200.html
> I got better loading time
>
> Maybe this should be included in the wiki
>
> thanks!
>
> On Wed, Aug 26, 2009 at 9:18 PM, Sandro Martini <sa...@gmail.com>
> wrote:
>>
>> Hi, take a look here:
>>
>>
>> http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/pack200.html
>>
>>
>> Byeeee
>
>

Re: how to reduce Pivot Jar size

Posted by Vicente de Rivera III <th...@gmail.com>.
Hi,

I used this guide
http://java.sun.com/javase/6/docs/technotes/guides/jweb/tools/pack200.html
I got better loading time

Maybe this should be included in the wiki

thanks!

On Wed, Aug 26, 2009 at 9:18 PM, Sandro Martini <sa...@gmail.com>wrote:

> Hi, take a look here:
>
>
> http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/pack200.html
>
>
> Byeeee
>

Re: how to reduce Pivot Jar size

Posted by Sandro Martini <sa...@gmail.com>.
Hi, take a look here:

http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/pack200.html


Byeeee

Re: how to reduce Pivot Jar size

Posted by Greg Brown <gk...@mac.com>.
Pivot doesn't provide any way to do that, but I imagine that there  
might be some tool that does.

Pivot's JARs aren't that large, though - is your application highly  
bandwidth-constrained?


On Aug 26, 2009, at 7:51 AM, Vicente de Rivera III wrote:

> I'm almost done with our school project and I already hosted it at  
> Google App Engine,
> http://lazychick-4ita.appspot.com/
> Any way to remove unused classes from the Pivot jars to reduce  
> download size?
>
> thanks,
> -
> thirdy


Re: how to reduce Pivot Jar size

Posted by Sandro Martini <sa...@gmail.com>.
Hi Vicente,
congratulations for your project ... I've just tried to run , and
seems interesting.

> Any way to remove unused classes from the Pivot jars to reduce download size?
In what sense you say "unused" ?
To reduce jar size you can use the standard pack200 tools (from JDK),
and refer to them in your applet / Wen Start, as explained in the Java
documentation. Usually jar files are much smaller after this.

Tell me if you have problems.


Before this, there is another thing you can do:
- ensure you compile without debug info (ok, this is trivial, but many
times this occur ...)
- shrink compiled classes using an obfuscator, like ProGuard, yGuard, etc
  -- but with these tools then, in case of errors, also class methods
and variables are reduced, so for example StackTraces becomes less
readable, so it's your choice.

But I'd wait to do this passage, if not to learn how to do ...


Bye,
Sandro