Hi all, im new at java and im try to runnig some examples in Net beans

i had this error
error: package sun.jdbc.odbc does not exist
                DriverManager.registerDriver(new sun.jdbc.odbc.JdbcOdbcDriver());

i dont know, maybe some is missing in my computer for run the examples properly
could any one help me?
tsm
ErnestoAsked:
Who is Participating?
 
CEHJCommented:
I've a vague memory that Java no longer supports Access-style databases. That's doing you a favour in the long run - use a proper database
0
 
ErnestoAuthor Commented:
In this line is in where the error appears,
tsm



DriverManager.registerDriver(new sun.jdbc.odbc.JdbcOdbcDriver());
0
 
ErnestoAuthor Commented:
any experts advice for deal with this?
tsm
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
CEHJCommented:
Did you not read my answer?
0
 
ErnestoAuthor Commented:
yes, i read, but im not sure if you right, cos are a lot of examples with ms access
0
 
CEHJCommented:
Yes but are they recent ones? Also what operating system are you using?
0
 
ErnestoAuthor Commented:
windows 7 64

i read about a driver i need to install for odbc connection jdbc , im not sure
0
 
CEHJCommented:
I don't know where you'd get the driver sorry. I wouldn't use an Access database with Java
0
 
CEHJCommented:
Why you'd want to buy something (c. 1000GBP) that will help you connect to a toy database puzzles me. If you do, be careful which of those drivers you buy since they don't all support 64 bit Windows
0
 
ErnestoAuthor Commented:
Guys i need help in here,
how do i connect java program to access database
do any have a code to help me out here?
tsm you guys
0
 
ErnestoAuthor Commented:
tell me in where start for java conecctions i need to test and see how it works
tsm you experts
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.