社区
Eclipse
帖子详情
com.mysql cannot be resolved to a type
zhang1ying
2009-09-17 01:29:48
我用MyEclipse导入了mysql驱动程序
但是在写完这句时DriverManager.registerDriver(new com.mysql.jdbc.Driver());
出现了com.mysql cannot be resolved to a type的错误提示
怎么解决
...全文
656
4
打赏
收藏
com.mysql cannot be resolved to a type
我用MyEclipse导入了mysql驱动程序 但是在写完这句时DriverManager.registerDriver(new com.mysql.jdbc.Driver()); 出现了com.mysql cannot be resolved to a type的错误提示 怎么解决
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
hy158753228
2009-09-17
打赏
举报
回复
DriverManager.registerDriver(new com.mysql.jdbc.Driver()); 这个要引入你的MYSQL的启动包。方法同一楼的
不推荐用这种方法注册驱动,而用Class.forName("com.mysql.jdbc.Driver")
这样,即使你没有导入驱动包,但可以编译通过(只是预编译哦)。
会游泳的小乌龟
2009-09-17
打赏
举报
回复
放在你WEB-INF里lib里
snow_online
2009-09-17
打赏
举报
回复
把代码贴出来看看,我觉得你导错了包
叶涛网站推广优化
2009-09-17
打赏
举报
回复
引入驱动jar
单击工程,选Build Path ,然后把mysql的连接包加进去
spring-tx.jar
The
type
org.springframework.dao.DataAccessException cannot be
resolved
. It is indirectly referenced异常缺少的包
Delphi7.1 Update
Delphi 7.1 Update Release Notes=======================================================This file contains important supplemental and late-breakinginformation that may not appear in the main productdocumentation, and supersedes information contained in otherdocuments, including previously installed release notes.Borland re
com
mends that you read this file in its entirety.NOTE: If you are updating a localized version of Delphi 7, visit the Borland Registered User web site to obtain a localized readme file that may contain important late- breaking information not included in this readme file.IMPORTANT: Delphi must be closed before installing this update. =====================================================CONTENTS * INSTALLING THIS UPDATE * UPDATING LOCALIZED VERSIONS OF DELPHI 7 * KNOWN ISSUES * ISSUES ADDRESSED BY THIS UPDATE - IDE - CORE DATABASE - DATASNAP - DBGO (ADO
COM
PONENTS) - dbExpress - dbExpress
COM
PONENTS AND DB VCL - dbExpress CORE DRIVER AND METADATA - dbExpress VENDOR ISSUES - dbExpress CERTIFICATION - WEB SNAP - ACTIVEX -
COM
PILER - RTL - VCL - THIRD PARTY - BOLD FOR DELPHI * VERIFYING THAT THE UPDATE WAS SUCCESSFUL * FILES INSTALLED BY THIS UPDATE =======================================================INSTALLING THIS UPDATE* This update can not be applied to Delphi 7 Architect Trial version. * This update can not be removed after it is installed.* You will need the original Delphi 7 installation CD available to install this update.* To install this update from the CD, insert the CD, and launch the d7_ent_upd1.exe file appropriate for your locale.* To install this update from the Web, double-click the self-executing installation file and follow the prompts. * The Delphi 7 documentation PDF files are available on the update CD.========================================================UPDATING LOCALIZED VERSIONS OF DELPHI 7* This update can be applied only to the English version of Delphi 7. There are separate updates for the German, French and Japanese ver
mysql
resolved
_The import
com
.
mysql
cannot be
resolved
代码如下代码如下String driverNam="
com
.
mysql
.jdbc.Driver";//数据库用户名String userName="root";String userPasswd="5622";String dbName="test";String tableName="studenInfo";//连接字符串String url="jdbc:
mysql
://localhost:33...
关于myeclipse连接
mysql
数据库显示:The import
com
.
mysql
cannot be
resolved
问题
首先贴出来我遇到的这个问题: 已经导入了
mysql
的驱动,但是导包的时候报出以下错误: 始终报出这个包无法解析 解决办法: 首先检查你的jdk版本,是否与你导入的
mysql
驱动所匹配,高版本的jdk可能会不兼容驱动,目前好像
MySQL
只支持到jdk1.8x(如果不是的话,求轻喷,也求科普) 查看方法: 打开myeclipse——>点击上方window ——>prefere...
The
type
javax.servlet.ServletContext cannot be
resolved
. It is indirectly referenced from required
一、当一个项目从一个工作空间移动到另一个工作空间时会出现以下错: The
type
javax.servlet.ServletContext cannot be
resolved
. It is indirectly referenced from required .class files。
Eclipse
58,454
社区成员
49,450
社区内容
发帖
与我相关
我的任务
Eclipse
Java Eclipse
复制链接
扫一扫
分享
社区描述
Java Eclipse
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章