Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:求助:(applet/jdbc:odbc - AccessControlException: access denied) [Re:blackhorse_zou]
blackhorse_zou





发贴: 17
积分: 1
于 2005-10-14 10:01 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
感谢各位的帮助!
我没有使用jdbc-odbc桥的方法连接数据库了!我现在使用的是直接连接数据库!
我下载了一个sql server 2000 driver for jdbc,按照上面的步骤安装,结果出现了以下的错误提示:

java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
  at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:162)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
  at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:141)
  at MyInquireApplet.actionPerformed(MyInquireApplet.java:55)
  at java.awt.Button.processActionEvent(Button.java:382)
  at java.awt.Button.processEvent(Button.java:350)
  at java.awt.Component.dispatchEventImpl(Component.java:3615)
  at java.awt.Component.dispatchEvent(Component.java:3477)
  at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
  at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
  at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Caused by: java.io.FileNotFoundException: C:\Documents and Settings\Administrator\桌面\com\microsoft\jdbc\sqlserver\SQLServerDriver.class (系统找不到指定的文件。)
  at java.io.FileInputStream.open(Native Method)
  at java.io.FileInputStream.<init>(FileInputStream.java:106)
  at java.io.FileInputStream.<init>(FileInputStream.java:66)
  at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
  at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
  at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:274)
  at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:4)
  at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:152)
  at java.security.AccessController.doPrivileged(Native Method)
  at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:149)
  ... 17 more

从错误提示看是因为:classpath的设置没有对!
可是我进入我电脑的环境变量设置里面没有classpath这一项,我自己添加了一个,按照说明输入了变量:安装路径+lib\msbase.jar lib\msutil.jar lib\mssqlserver.jar
但是仍然不行!后来我进入注册表找到了jvm的classpath,不知该如何添加,于是直接把路径添加在后面!可是还是不行!
那位前辈帮帮我!!!!




学java的朋友,请一起来投票让sun推出中文jdk文档!!!

话题树型展开
人气 标题 作者 字数 发贴时间
5847 求助:(applet/jdbc:odbc - AccessControlException: access denied) blackhorse_zou 2305 2005-10-11 14:06
5024 Re:求助: dalor_cheng 101 2005-10-11 18:51
4889 Re:求助: q_yuan 27 2005-10-11 20:26
4914 Re:求助:(applet/jdbc:odbc - AccessControlException: access denied) why 1464 2005-10-11 20:37
5238 Re:求助:(applet/jdbc:odbc - AccessControlException: access denied) 落魄 159 2005-10-13 09:07
4956 Re:求助:(applet/jdbc:odbc - AccessControlException: access denied) blackhorse_zou 2431 2005-10-14 10:01
5158 Re:求助:(applet/jdbc:odbc - AccessControlException: access denied) blackhorse_zou 28 2005-10-14 10:10

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923