求救!

tandy 2014-12-25 04:38:50
从 eclipse 里 建了一个项目 导出jar包打不开 确定导出步骤没有问题 ,
所以想用 myeclipse 试试, 结果将工程导入到 myeclipse 中 却报错
The project cannot be built until build path errors are resolved
Unbound classpath container: 'JRE System Library [JavaSE-1.8]' in project 'ReadExcel'

然后重新引入一遍 jre system library
但是又报

The project was not built since its build path is incomplete. Cannot find the class file for javax.swing.JTable. Fix the build path
The type javax.swing.JTable cannot be resolved. It is indirectly referenced from required .class files

求解决!!
新手 还不太懂

...全文
115 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
tandy 2014-12-25
  • 打赏
  • 举报
回复
import javax.swing.JFrame;
import javax.swing.*;

public class TableJFrame extends JFrame {
	
	public TableJFrame() {
		this.setTitle("Test the JTable!");
		this.setBounds(300, 150,800, 600);
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		String[] rows = {"A","B","C"};
		String[][] cols = {{"1","2","3"},{"4","5","6"},{"7","8","9"}};
		JTable jTable = new JTable();
		/*写到这就出错了  T_T*/
		this.setVisible(true);
	}

	public static void main(String[] args) {
		new TableJFrame();

	}

}
tandy 2014-12-25
  • 打赏
  • 举报
回复
tandy 2014-12-25
  • 打赏
  • 举报
回复
已经下了新的JDK1.8.0_25 为什么我的myeclipse 就是不能加载JTable 呢
永不感冒患者 2014-12-25
  • 打赏
  • 举报
回复
看看是不是jdk版本的问题 可能导入myeclipse时候用的自带jdk版本和项目版本不一致

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧