eclipse 中项目的classpath 与java Build Path中的Order and Export相对应
也就是 与
Properties p = System.getProperties();
Set s = p.keySet();
Iterator it = s.iterator();
while(it.hasNext()) {
String key = it.next()+"";
System.out.println(key+":"+p.get(key));
}
中的java.class.path 相同
也就是.classpath文件中的
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
<classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="src" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
原文地址:http://yaomy.blog.51cto.com/8892139/1693110