DZone Forums
Go Back   DZone Forums > Community > Databases & SQL > Microsoft Access
Reload this Page frazzled about connecting to dbase (MS Access)
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jul 2008
Default frazzled about connecting to dbase (MS Access) - 07-12-2008, 01:16 PM

hi,

am trying to change from WXP to Linux... at the moment am trying to get Eclipse working...

in fact I've got it working very easily... but I'm having less success connecting to an MS Access dbase.
Code:
   // try to set up driver
    try { Class.forName("org.apache.derby.jdbc.EmbeddedDriver");}
    catch (Exception e) {
      e.printStackTrace();
    }

    // try to connect to the dbase
    try { c = DriverManager.getConnection( "jdbc:derby:/media/sda5/TM proj/ragbag.mdb", "", ""); }
    
    catch (Exception e) {
      e.printStackTrace();
    }
I'm getting:
1) java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver

2) java.sql.SQLException: No suitable driver found for jdbc:derby:/media/sda5/TM proj/ragbag.mdb

somebody in some forum somewhere said sthg about adding a classpath so the driver would be accessible... but where is it? Someone else said sthg about a plug-in for Eclipse... yet other people have said MS Access is difficult to connect to in Linux (in which case I would have to try to convert it to another format)...

as you can see, I'm floundering and need an ABC about what I do to set up the driver and then connect

all enlightenment gratefully received

Mike
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem connecting to MSSQL database in Eclipse S.I.D Eclipse 2 02-15-2009 03:17 AM
Why can't I access to www.eclipsezone.com? gamby Zones 10 02-02-2009 09:48 AM
Connecting To Microsoft SQL Server-2008 jo90way Microsoft SQL Server 0 01-12-2009 04:48 AM
Connecting SCM from Eclipse vivekg Eclipse 0 07-10-2008 05:49 AM
Access denied seanwt Zones 3 02-06-2008 07:58 PM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com