rt.jar put on a Proguard diet losses 26 MB
Michael Hall
mik3hall at gmail.com
Sun Dec 16 16:09:42 PST 2012
On Dec 16, 2012, at 5:33 PM, Jeff Palmer wrote:
>
>
> You could also get a similar effect, but write it out as separate jars, one for your app & rt. jar. Both of these would not allow the user of your application to replace the library & have it still work. Licensing issue if someone wants to make a scene.
JWS on OS X is supposed to use the Internet Plugin 'shared' JRE as far as I know with no options for embedding or pointing to your own. I'm not sure what shortcuts do. If they create a more or less standalone application bundle you could maybe embed your own JRE there. But I'm just not sure this would work real easily the way JWS is set up on OS X.
>
> FYI, The biggest bang for the buck is repackaging everything down so a single char package like '_'. The package path is bigger than the class names so shrink is very large, & for obfuscation purposes it is a complete incomprehensible mess.
Yeah, this was what I was thinking you might be able to do for full class file names if you were clever. Have some sort of dictionary for the package part that would have a short key where you could look up the full package path when needed. But only need to have the full package path once.
Michael Hall
trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz
HalfPipe Java 6/7 shell app http://www195.pair.com/mik3hall/index.html#halfpipe
AppConverter convert Apple jvm to openjdk apps http://www195.pair.com/mik3hall/index.html#appconverter
>
> Jeff Palmer
> WhatIf Squared LLC
More information about the macosx-port-dev
mailing list