作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用Eclipse Luna并且我正在尝试运行一个简单的文本程序,但Eclipse给出了错误:
Error: Could not find or load main class Main
I have no idea what's going on. I haven't found anything useful on Stack Overflow or Google. Here is my code:
public class Main {
public static void main(String[] args) {
System.out.println("This is a String");
}
}
谢谢。
最佳答案
你的代码看起来不错!
执行以下步骤来运行您的类(class)
Project
部分,然后点击clean
。自动构建
。类
,右键单击它,然后选择运行
。 关于java - Eclipse Java错误: Cannot find or load main class,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27694006/
我是一名优秀的程序员,十分优秀!