Ethan Nicholas是Sun Microsystems公司负责Java
Kernel项目的工程师。最近他在一篇文章中详述了Java
Kernel的最新状况,包括如何实现最小尺寸JRE的机制、目前实验的结果。让人兴奋的是,根据其目前结果,对于普通Swing应用程序来说,JRE最小可以做到1.5M:
"The Kernel JRE's installer includes jvm.dll, the other native
files and hundreds of classes needed to boot the JVM, the Java
Plug-In, Java Web Start, java.exe, javaw.exe, javaws.exe, the
installation code, and various support libraries needed to support
the installer (such as unpack200).
And it's only 1.9MB.
If you build a custom bundle containing the classes required to run
a typical Swing program, it comes out to about 1.5MB, for a total
download of around 3.4MB for the JRE + custom bundle. Bigger
programs might use as much as 4MB-5MB of the total JRE size, but it
would be rare to exceed that.
Compared to the current JRE's size of somewhere between 10MB and
15MB, depending on how you measure it, hopefully you will agree
that this is quite an improvement."
更多详细的技术细节和进展情况参见他的文章:
Java
Kernel Unmasked
加载中,请稍候......