• Post Reply Bookmark Topic Watch Topic
  • New Topic

Login error Java Class Not Found Exception to Ms Access  RSS feed

 
Chernenko Nencor
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello javaranch !

i was trying to make my own class to connect to JDBCODBC Ms Access driver, it goes like this



then, i got form login, with LOGIN button inside. i have added the following code to my login form



when i tried to login, the following error show


i thought the error come from RETURN NULL inside my ConnectAccess.GetData function. idk why eclipse put quickfix RETURN NULL there,

how do i know if i can "PING" my MsAccess Correctly ?
how to solve the error ?

thanks !
 
Dave Tolls
Ranch Foreman
Posts: 3056
37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver

The JDBC/ODBC driver was removed from Java 8.
UCanAccess seems to be the driver that I've seen referenced most as a replacement. I can't guarantee anything about it, though.
 
Chernenko Nencor
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to get done with java 6 ?


And idk if java 6 sill can be downloaded tho,


Btw is there anything wrong with my code beside JAVA Version ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!