Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只是提议从其他人那里从事这个项目,并且没有任何使用 MyEclipse 的经验(并且很少使用 Eclipse 本身)。查看包结构时,所有包的名称如下:
java.com.example1 java.com.test
代码中的import和package语句是这样的:
package com.example1 import com.test
哪个给了我找不到包的错误,我该怎么做才能解决这个问题?我觉得这很明显,我没有得到
山姆,
在 Eclipse 中右键单击项目并打开 Properties 并从左侧选择“Java Build Path”。在右侧,您将看到一个选项卡“来源”。删除现有的源文件夹并通过单击“添加文件夹”重新添加它们,然后在树中选择“Java”复选框。您告诉 eclipse 将此“Java”下的所有文件夹视为您的包\文件。
不确定我是否解释得当,但请回复,我会看看我是否可以附上截图。祝你好运。
-红人