Eclipe LUNA-“无法解析导入java.sql" [英] Eclipe LUNA - "The import java.sql cannot be resolved"

查看:45
本文介绍了Eclipe LUNA-“无法解析导入java.sql"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的计算机上安装了Eclipse LUNA和JDK 8.我在导入行上收到消息无法解析导入java.sql".

I have Eclipse LUNA and JDK 8 installed on my computer. I get the message "The import java.sql cannot be resolved" on the import lines.

我检查了jre定义(Windows->参考-> Java->已安装的JRE并将其安装到我计算机上jre的文件夹中.

i checked the jre definition (windows -> reference -> java -> installed JREs and it is setup there to the folder of the jre on my computer.

出什么问题了?

推荐答案

右键单击项目-> BuildPath->配置BuildPath->库"选项卡->

Right click on project - >BuildPath - >Configure BuildPath - >Libraries tab - >

双击JRE SYSTEM LIBRARY->然后选择备用JRE

Double click on JRE SYSTEM LIBRARY - >Then select alternate JRE

尝试一下.之后,也请清理您的项目.

Try this.. After that once clean your project too..

这篇关于Eclipe LUNA-“无法解析导入java.sql"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆