classNotFoundException when trying to use Oracle JdbcOdbcDriver

I have successfully installed an ODBC driver. I am trying to connect to an Oracle 10g database using Netbeans 7.0. During connectivity it says "Driver class missing". How can this be fixed? Error: > java.lang.classNotFoundException:oracle.jdbc.odbc.JdbcOdbcDriver try { // Load the JDBC driver String driverName = "oracle.jdbc.odbc.JdbcOdbcDriver"; Class.forName(driverName); connection = DriverManager.getConnection("jdbc:odbc:placement"); JOptionPane.showMessageDialog(null,"Connection Established"); ///unrelated code snipped }
You may have 'installed' the JDBC driver, but you haven't put the jar file containing it into your classpath.

以上就是classNotFoundException when trying to use Oracle JdbcOdbcDriver的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准