Java程序调优---去掉 java 项目中 多余的jar包 方法
来源:互联网 发布:淘宝卖家团队管理 编辑:程序博客网 时间:2024/06/11 09:33
开发工具Eclipse 3.x
插件一:ClassPath Helper
插件地址:http://classpathhelper.sourceforge.net/
Downloading ClassPath Helper
For starters, you need to download the Classpath Helper eclipse plugins. The files are packaged seperately as binaries and source code plugins. The source code plugins are not required for execution.
The latest version of Classpath Helper can be downloaded from source forge http://classpathhelper.sourceforge.net/downloads.html
Once you download the eclipse distribution zip file, you need to unzip it in your eclipse directory (it will automatically unpack itself in the appropriate subdirectory (i.e. plugins). From there (re)start eclipse. You can verify if the classpath helper plugins are properly installed by selecting Help->About Eclipse SDK, select the "Plug-in Details" button.
Configuring Eclipse
Eclipse by default starts its VM with a very small heap and stack. This leads to some mysterous stack overflows from within Eclipse when plugins are performing long running jobs. This is a well documented bug within Eclipse that affects other plugins. The work around is to increase the stack size upon eclipse startup.
eclipse.exe -Xms64m
Opening Classpath Helper Views
The Classpath Helper Views can be opened in any perspective with the following steps.
First, from the Menu select Window->Show View->Other...
Second, under the Classpath Helper category, select the Classpath Helper View, Location By Location View, or Packages View
The Classpath Helper View
The basic layout of this view should be a straight forward translation of the classpath. The classpath is based upon the currently selected model (which initially is taken from the currently selected Java Project from you Package Explorer view).
Familar icons are used for Jar files and class folders. The order is represented top to bottom. The various decorations on these elements will be explained later.
This can be expanded to show the classes and interfaces within each jar or folder.
Unresolved Classes
The highlighted region shows a jar and class file decorated with a . This indicates that a reference to a class cannot be resolved (found) on the current classpath. In this example, a class called anunresolvedjar.ClassMissingFromJar
cannot be found. At runtime this would lead to either a java.lang.ClassNotFoundException
or a java.lang.NoClassDefFoundError
. In either case, the class anunresolvedjar.ClassWithMissingDependency
cannot be loaded.
Blocked (Obscured) Classes
The first highlighted region (next to the ) shows jar and class file decorated with a . This indicates a class is 'blocked' or 'obscured' on the classpath. This means that the class/interface located at this location will never be loaded. Instead it is loaded from another location. In this instance, we can see that the class ajar.DependsOnFilesFromFolder
will actually be loaded from C:\Development\Sample\demoarea\ajar.jar
.
- Java程序调优---去掉 java 项目中 多余的jar包 方法
- Java程序调优---去掉 java 项目中 多余的jar包 方法
- java项目中添加JAR包的方法
- java 中打jar包的方法
- Java中打jar包的方法
- eclipse去掉多余包的方法
- 向Java项目中导入jar包方法详述
- 【转载】向Java项目中导入jar包方法详述
- java程序实现对项目打成jar包的功能
- 包含第三方JAR包的JAVA程序打包方法
- eclipse java项目引入jar包的方法
- 解决java项目打jar包,项目中引用有其他jar包的问题
- Eclipse Java EE隐藏项目中Referenced Libraries jar包的方法
- java项目中常见jar包的说明
- java项目中可能会使用到的jar包解释
- 在java项目中导入jar包
- 在java项目中引用jar包
- IDEA java项目中添加jar包
- weird
- 接口的作用
- 事件响应---QT
- 6.2 移动小球
- Java程序发送邮件的两种方法
- Java程序调优---去掉 java 项目中 多余的jar包 方法
- uva 10161-棋盘上的蚂蚁
- C语言内存管理分析
- 开发工具Eclipse 3.x
- WinRT下GirdView和ListView控件疑难杂症小结
- 黑马程序员—算术运算符
- 2013年学习方向
- uva-迷宫题
- HashMap和Hashtable的比较