代码改变世界

myeclipse 的问题点滴记录

2017-10-09 10:30  雄风狂飙  阅读(98)  评论(0)    收藏  举报

1. 工程下面的 .project ,常用结构如下:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
 <name>test</name>
 <comment></comment>
 <projects>
 </projects>
 <buildSpec>
  <buildCommand>
   <name>org.eclipse.jdt.core.javabuilder</name>
   <arguments>
   </arguments>
  </buildCommand>
 </buildSpec>
 <natures>
  <nature>org.eclipse.jdt.core.javanature</nature>
 </natures>
</projectDescription>

 

2.工程下面的 .classpath ,一般结构如下:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
 <classpathentry kind="src" path="src"/>
 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java8"/>
 <classpathentry kind="output" path="bin"/>
</classpath>

如果更新 项目->右键->Properties->Java Build path->Libriries ,更新下面的 jdk,则 上面的 <classpathentry kind="con"/>会随之改变。

3.编译和运行环境的设置

http://www.360doc.com/content/14/0713/08/8072791_394027312.shtml