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.
我设置了 Netbeanss 7.1.1 并在下面编写了简单的代码。但是当我运行课程时,它无法正常工作并给出以下消息:
错误:无法找到或加载主类 paket.sss Java 结果:1
package paket; public class sss { public static void main(String[] args) { System.out.println("...."); } }
我到处找,但我找不到。解决办法是什么?
如果类文件不存在,则会发生此错误。
我建议您进行重建并确保该类存在于目标目录中。
我遇到了同样的问题,但我没有找到任何好的答案,但是我的目录中有一些čćšž字符,所以我直接制作了项目E:\并且它工作得很好。
E:\