减少JRE的大小

减少JRE的大小,第1张

减少JRE的大小

查看JRE目录中的README文件。“可选文件和目录”部分列出了一些文件(如果将它们与应用程序打包在一起,可以从Oracle / Sun JRE中删除)。

创建安装时,我使用Ant构建文件将JRE从系统安装位置复制到软件包目录。将要排除的文件列表放在单独的文件中,并使用’excludesfile’属性加载此列表:

<copy todir="${deployed_jre_dir}">  <fileset dir="${system_jre_dir}" excludesfile="jre_excludes.properties" </copy>

样本jre_excludes.properties文件:

# per the README from the JRE, these files are for the browser plugin and are not needed otherwise#bin/javaw.exebin/javaws.exebin/javacpl.exebin/jucheck.exebin/jusched.exebin/wsdetect.dllbin/NPJPI*.dllbin/NPJava*bin/NPOJI610.dllbin/RegUtils.dllbin/axbridge.dllbin/deploy.dllbin/jpicom.dllbin/javacpl.cplbin/jpiexp.dllbin/jpinscp.dllbin/jpioji.dllbin/jpishare.dlllib/deploy.jarlib/plugin.jarlib/javaws.jarlib/javaws/messages*lib/javaws/miniSplash.jpgbin/new_plugin**bin/jureg*bin/ssv*bin/jqs*bin/jp2*lib/deploy*# if you do not need any RMI stuff# wildcard to catch .exe files on Windows# note rmi.dll is not excluded, which is needed by jconsole; add rmi.dll if you do not need jsonsolebin/jbroker*bin/java-rmi*bin/rmid*bin/rmiregistry*bin/tnameserv*bin/orbd*bin/servertool*# do not include QuickTime# this will be in the jre dir for machines that have QT installedlib/ext/QTJava.zip


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5479022.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-12
下一篇 2022-12-12

发表评论

登录后才能评论

评论列表(0条)

保存