博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Error: Could not find or load main class test.EditFile
阅读量:4448 次
发布时间:2019-06-07

本文共 685 字,大约阅读时间需要 2 分钟。

  今天写了一个简单的小程序,运行之后发现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 stub10 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啦

  问题解决

转载于:https://www.cnblogs.com/fengxm/p/4059406.html

你可能感兴趣的文章
[转]SQL Server 性能调优(io)
查看>>
设计模式学习-每日一记(6.原型模式)
查看>>
不已0开头的数字正则
查看>>
HTML撑起浮动子元素得父元素高度
查看>>
LeetCode--018--四数之和(java)
查看>>
Redis消息队列
查看>>
电商网站架构设计
查看>>
http://jingyan.baidu.com/article/4dc40848e7b69bc8d946f127.html
查看>>
WCF netTcp配置
查看>>
单例类
查看>>
python 正则表达式 提取网页中标签的中文
查看>>
LA 2531 The K-league 最大流
查看>>
从零开始学习前端JAVASCRIPT — 6、JavaScript基础DOM
查看>>
Edit显示行号
查看>>
取得字符串中指定的字符str[]
查看>>
delphi TOpenDialog
查看>>
static关键字用法
查看>>
JVM调优总结
查看>>
git安装和使用
查看>>
数据类型转换
查看>>