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.
我正在尝试为Crawler4j设置示例代码,但 Eclipse 抛出了一个我不理解的错误。错误是:
The declared package "edu.uci.ics.crawler4j.examples.basic" does not match the expected package ""
路径“edu.uci.ics.crawler4j.examples.basic”在那里并且正确。
您需要从基本目录运行 Java 编译器,以便它看到该edu/...文件夹。 如果您从包含实际.java文件的目录中运行它,它将看不到任何文件夹,因此它将期待默认包。
edu/...
.java