[jsword-devel] private JRE, Harmony, RCP, pack200 etc

Zhaojun Li(李召军) lzj369 at gmail.com
Fri Jan 26 10:48:39 MST 2007


The script was bounced by maillist because of the big size.

Look at the following sample:
  SetOutPath "$INSTDIR\plugins"
  File "cross\plugins\org.eclipse.update.ui_3.2.1.v20092006.pack"
  File "cross\plugins\org.xinxinxin.cross.base_1.0.0.pack"
  File "cross\plugins\org.xinxinxin.crossfrag_1.0.0.pack"
  File "cross\plugins\org.xinxinxin.cross_1.0.0.pack"
  File "cross\plugins\org.xinxinxin.jswordfrag_1.0.0.pack"
  File "cross\plugins\org.xinxinxin.jsword_1.0.1.pack"
  File "cross\plugins\org.xinxinxin.rssreader_1.0.0.pack"
  SetOutPath "$INSTDIR"
  File "cross\startup.pack"

 nsexec::exec '"$INSTDIR\jre\bin\unpack200.exe" -r -q
"$INSTDIR\startup.pack"																		    "$INSTDIR\startup.jar"'
 nsexec::exec '"$INSTDIR\jre\bin\unpack200.exe" -r -q
"$INSTDIR\jre\lib\jce.pack"																	
"$INSTDIR\jre\lib\jce.jar"'
 nsexec::exec '"$INSTDIR\jre\bin\unpack200.exe" -r -q
"$INSTDIR\jre\lib\jsse.pack"																	
"$INSTDIR\jre\lib\jsse.jar"'
 nsexec::exec '"$INSTDIR\jre\bin\unpack200.exe" -r -q
"$INSTDIR\jre\lib\management-agent.pack"																
"$INSTDIR\jre\lib\management-agent.jar"'
 nsexec::exec '"$INSTDIR\jre\bin\unpack200.exe" -r -q
"$INSTDIR\jre\lib\resources.pack"																	
"$INSTDIR\jre\lib\resources.jar"'
 nsexec::exec '"$INSTDIR\jre\bin\unpack200.exe" -r -q
"$INSTDIR\jre\lib\rt.pack"																	
"$INSTDIR\jre\lib\rt.jar"'
 nsexec::exec '"$INSTDIR\jre\bin\unpack200.exe" -r -q
"$INSTDIR\jre\lib\charsets.pack"																	
"$INSTDIR\jre\lib\charsets.jar"'
 nsexec::exec '"$INSTDIR\jre\bin\unpack200.exe" -r -q
"$INSTDIR\jre\lib\ext\sunmscapi.pack"																
"$INSTDIR\jre\lib\ext\sunmscapi.jar"'
 nsexec::exec '"$INSTDIR\jre\bin\unpack200.exe" -r -q
"$INSTDIR\jre\lib\ext\sunpkcs11.pack"																
"$INSTDIR\jre\lib\ext\sunpkcs11.jar"'
 nsexec::exec '"$INSTDIR\jre\bin\unpack200.exe" -r -q
"$INSTDIR\jre\lib\im\indicim.pack"

On 1/26/07, DM Smith <dmsmith555 at yahoo.com> wrote:
> Zhaojun,
>
> I looked at distributing the JRE with BibleDesktop as part of the
> "Portable BibleDesktop" effort (see www.crosswire.org/~dmsmith/bd). The
> goal here was to have it fully expanded so that it would work on a
> CD-ROM or a USB drive on any platform. I too found that it is big.
>
> I would be very interested to know how you recompressed the JRE and how
> you would expand it again upon delivery.
>
> As far as BibleDesktop goes, we are stuck with Sun's implementation of
> Swing. I think that JSword or Common can use most 1.4 level JREs. I had
> problems with IBMs JRE and I think it had to do with charsets, but I'm
> not sure.
>
> The exciting part of RCP/JFace/SWT is that we could use other JREs,
> including GNU's and Apache's.
>
> I read the license for Harmony and clause 4 gives us the right to
> distribute.
>
> DM
>
> Zhaojun Li(李召军) wrote:
> > Hi,
> >
> > I found that distributing java application anoying because it needs
> > JRE on users desktop. We have no control on what on users' system.
> >
> > One solution is to distribute a private JRE with our application. JRE
> > 5 and 6 are all too big. According to Sun, we have to distribute many
> > jars that not needed at all in order to comply with the license.
> >
> > I removed those files that are optional in JRE , unfortunately I can
> > not remove charset.jar because of internationalization.  I was able to
> > comrpess JRE, RCP to a size of 9mb. Very impressive.  Still plus my
> > plugins, the size goes to 12mb.
> >
> > I notice harmony has an JRE under apache license. and all the jars are
> > modular. I am not good at apache license. Does it allow us to remove
> > the components? I think so.
> >
> > I tested Eclipse on Harmony, it runs well. Apache also claims it
> > supports eclipse.  That means we can distribute a working JRE without
> > AWT,SWING and other components we do not need for RCP.  I expect after
> > compression, the JRE can be like 2-4 MB.
> >
> > Any inputs?
> >
> > Zhaojun
> >
>
>
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel
>


More information about the jsword-devel mailing list