<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> 从SVN下签出的一个项目,发现右击项目没有 bulid path </p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> 以一个范例做讲解<br> </p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> File->Import对话框->SVN->从SVN检出项目->创建新的资源库位置->URL:<tt><a href="https://hadoopdb.svn.sourceforge.net/svnroot/hadoopdb" name="tex2html17" rel="noopener noreferrer" style="color:rgb(51,102,153); text-decoration:none" target="_blank">https://hadoopdb.svn.sourceforge.net/svnroot/hadoopdb</a></tt></p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> ->从SVN 检出选择trunk目录->做为工作空间中的项目检出 项目名称:hadoopdb_trunk点击完成按钮。</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> 在Package Explorer 视窗内可以看到</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> <br> </p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> hadoopdb_trunk 的项目右击没有 bulid path </p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> <br> </p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> 并且源码不是以包的形式展现的。</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> 这种情况是由于.project文件缺少</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> <natures><br> <nature>org.eclipse.jdt.core.javanature</nature><br> </natures><br> </p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> 所致。</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> 至于</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> hadoopdb_trunk</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> |</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> |---src</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> |-----java</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> |-----edu</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> |----yale</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> |----cs</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> |----hadoopdb</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> |----benchmark</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> | |----AggTaskLargeDB.java</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> | |----类省略</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> |----文件夹省略 <br> </p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> 形式展现源码,而不是常见的</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> </p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> hadoopdb_trunk</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> |</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> |---src/java</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> |-----edu.yale.cs.hadoopdb.benchmark</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> | |-----AggTaskLargeDB.java <br> </p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> | |--类省略</p>
<span style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> |---包省略</span>
<br style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px">
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> <br> </p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> 这是因为缺少.classpath文件</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> 在项目路径下添加.classpath文件,编辑内容如下:</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> </p>
<div class="dp-highlighter bg_plain" style="font-family:Consolas,'Courier New',Courier,mono,serif; background-color:rgb(231,229,220); width:700.90625px; overflow:auto; padding-top:1px; |
|