eclipse项目找不到build path

论坛 期权论坛     
选择匿名的用户   2021-5-28 02:18   75   0
<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-&gt;Import对话框-&gt;SVN-&gt;从SVN检出项目-&gt;创建新的资源库位置-&gt;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"> -&gt;从SVN 检出选择trunk目录-&gt;做为工作空间中的项目检出  项目名称: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"> &lt;natures&gt;<br>         &lt;nature&gt;org.eclipse.jdt.core.javanature&lt;/nature&gt;<br>     &lt;/natures&gt;<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,&#39;Courier New&#39;,Courier,mono,serif; background-color:rgb(231,229,220); width:700.90625px; overflow:auto; padding-top:1px;
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP