Solved

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

Posted on 2014-11-25
12
58 Views
Last Modified: 2016-03-24
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
0
Comment
Question by:edo60
  • 7
  • 5
12 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 40464990
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
 

Author Comment

by:edo60
ID: 40465034
In this line is in where the error appears,
tsm



DriverManager.registerDriver(new sun.jdbc.odbc.JdbcOdbcDriver());
0
 

Author Comment

by:edo60
ID: 40467137
any experts advice for deal with this?
tsm
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 40467214
Did you not read my answer?
0
 

Author Comment

by:edo60
ID: 40467958
yes, i read, but im not sure if you right, cos are a lot of examples with ms access
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 40468010
Yes but are they recent ones? Also what operating system are you using?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:edo60
ID: 40468160
windows 7 64

i read about a driver i need to install for odbc connection jdbc , im not sure
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 40468863
I don't know where you'd get the driver sorry. I wouldn't use an Access database with Java
0
 

Author Comment

by:edo60
ID: 40469202
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 40469230
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
 

Author Comment

by:edo60
ID: 40469515
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
 

Author Comment

by:edo60
ID: 40469522
tell me in where start for java conecctions i need to test and see how it works
tsm you experts
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now