问题描述
- 请教一个Java 问题,求答案
-
ava.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at DataLink.(DataLink.java:17)
at DataFrame.actionPerformed(DataFrame.java:62)
at java.awt.Button.processActionEvent(Unknown Source)
at java.awt.Button.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
解决方案
ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
odbc驱动包没有找到,或者是你的字符串没写对。
解决方案二:
我来请教一个简单java问题,求解答
关于Java构造方法的一个问题
解决方案三:
说你的jdbc驱动没有找到,第一步看看有没有jdbc的包,一般有,第二网上对照一下jdbc的配置文件有没有写对三http://zhidao.baidu.com/link?url=Wy2du2-4UCX9Kj3vkEqM2a0cZrer8ficQurQMmxH1ksA4EjUPrt0jiL7GuYqpXpmpKGCkf8lKeMe4oKVaelONMWxtW30tTd4_zhBMSuOeU3
解决方案四:
看看你的数据库jar包导了么有
解决方案五:
下载一个jdbc jar 包,然后放到jre的libext文件夹下
解决方案六:
没有找到驱动包,如果是是SQL Server2000老版本,需要三个驱动包,如果是SQL Sverver2005及以上版本,一个驱动包即可
解决方案七:
odbc 的驱动没找到
时间: 2024-09-28 05:59:36