今天写了一个简单的小程序,运行之后发现Error: Could not find or load main class test.EditFile,项目无法启动。删除main中的所有内容之后依旧提示该错误。

 1 package test;
 2 
 3 public class EditFile {
 4 
 5     /**
 6      * @param args
 7      */
 8     public static void main(String[] args) {
 9         // TODO Auto-generated method stub
10 
11     }
12 
13 }

  查看problem,发现内容如下:The container 'JRE System Library [java-7-openjdk-i386]' references non existing library '/usr/lib/jvm/java-7-openjdk-i386/jre/lib/ext/pulse-java.jar'

  eclipse中,右击项目-properties-Java Build Path,发现JRE System Library上有红叉,选中remove,之后Add Library-JRE System Library-Installed JREs,发现原来配置好的jre不知道为什么突然都不见了,此时重新配置好,就OK啦

  问题解决

相关文章:

  • 2022-12-23
  • 2021-11-25
  • 2021-12-08
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-21
  • 2021-09-20
  • 2021-08-19
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案