Jar文件运行缓慢改进

来源:互联网 发布:js九九乘法表原理 编辑:程序博客网 时间:2024/06/06 04:57

当将java工程从eclipse打包成jar文件运行时,如果导出过多的包将会导致程序运行变得非常缓慢。
这里写图片描述
The option “Package required libraries into generated JAR” copy the libs you use as jar files into your own jar file and the JVM needs to open it (or even extract if it’s compacted) when you run the application.
这里写图片描述
选取该选项可以使得jar文件运行速度变快。

0 0
原创粉丝点击