Accessing Microsoft Access DB

Hi there,
i can't access to my Microsoft Access DB.
this is what i wrote
Class.forName("sun.jdbc.odbc.dbcOdbcDriver");
Connection con = DriverManager.getConnection("
jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};DBQ=C:/
Documents and Settings/Administrator/Desktop/db1.mdb");
and i don't use any password.
i get this errors:
java.lang.ClassNotFoundException: sun.jdbc.odbc.dbcOdbcDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at GrabTable.<init>(GrabTable.java:27)
at GrabTable.main(GrabTable.java:48)
Please help me i don't know what to do?
Thanks!!!!

Class.forName("sun.jdbc.odbc.dbcOdbcDriver");Typo. Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

Similar Messages

  • When i login with microsoft account cannot access with administrative share c$

    i have a problem when i login to windows with microsoft account cannot access any network computer with administrative sharing c$,d$ with windows 8.1 
    but when i login with local account can access
    and some people tell  me create key in regedit t fix it 
    after enter user name and password show this error 
    and i apply your instruction  and not fix until now
    note:
     my Machine windows 8.1 if another machine in network windows 7 can access a hidden share if machine in network windows 8.1 show this message in image 2 
    but if i login with local user can i access all machine hidden share network windows 7 and 8.1

    yes this computer i want to access  name poland2-work and have two users 
    first :administrator
    second : poland 2

  • Can no longer connect to a Microsoft Outlook Web Access site

    Hi,
    I hope you can help.
    I used to be able to access a Microsoft Outlook Web Access site. However recently I am unable to do so. It has a self signed certificate, which I used to choose to accept, and then the browser waits and waits and waits.
    I have tried Safari, Firefox, Camino, Flock, Opera, even Internet Explorer. They all behave the same way.
    I am not sure when it stopped working. I only log on infrequently. So I do not know if it stopped working after a security update or an OS upgrade.
    My Mac is up to date with software updates. I have performed the usual things, repaired permissions etc.
    The funny thing is I can connect using Netscape Comunicator under Classic. I have also borrowed a friend's MacBook running leopard, and that works too.
    I am wondering if a setting somewhere has become corrputed or inadvertently set incorrectly.
    Thank you in anticipation.
    Ted

    Hi Bryan,
    Thanks for your input.
    Unfortunately I cannot get any of the OS X browsers I have tried to get beyond the accepting the site's certificate. All just stall waiting on the Outlook Web Access site. Safari 3.1, Camino, Flock, Firefox (2.0.0.12 and 3 beta 4), Netscape (7.1 and 9), Microsoft's Internet Explorer (thinking that might be more integrated with its Outlook Web Access package).
    I have even deleted the certificates from my Keychain (for Safari) or within the other browsers' preferences.
    Last night I even re-applied the 10.4.11 combo updater and then checked for software updates to confirm my system was up to date, but again without success when attempting to reach the Outlook Web Access site.
    Thanks anyway.
    Ted

  • Importing metadata from Microsoft Excel or Access to Adobe Bridge CC metadata

    I'm trying to figure out how to batch import a substantial amount of metadata in Microsoft Excel or Access to the IPTC core fields in Adobe Bridge CC. I've seen the issue discussed, but many of the posts about it are six or seven years old. So here are the simplest statement of the questions:
    1. Is it possible to export data from Excel or Access to XMP and then batch-import it in Adobe Bridge CC?
    2. If it requires templates, are there commercial, shareware, or freeware templates that will achieve this?
    3. If so, what are the links to those repositories?
    4. Is there a set of step-by-step instructions to achieve this on PC and/or Mac?
    5. What are the links to those instructions?
    Thanks in advance for your help. I've used Bridge from CS1... but I've never used it for batch-importing to IPTC.

    Well,
    it works for me without problems.
    Some information on my setup and what I did:
    - my primary browser language is English (en-us)
    1) Save the data in a file called hardware.txt:
    SERIAL,HOSTNAME,ITEM_TYPE,BRAND,MODEL,OWNER,STATUS
    AEP016136,d2vmrw61,Laptop,Dell,m71,Gary Cleary,Active
    AEP016169,dhj3b71,Desktop,Dell,Dimension 4700,Unassigned,Active
    AEP016170,cn-0g8432-64180-52p-1yts,Monitor,Dell,E193FP,Unassigned,Active2) Load the data (Load text data) into an existing table by uploading a file:
    - File: hardware.txt
    - Separator: , (comma)
    Worked fine.
    3) Load the data (copy /paste spreadsheet data into an existing table):
    - Open the file hardware.txt in Excel and import it into the spreadsheet
    - copy all three lines and paste them into the textarea in XE (the difference is that the columns are no longer separated by commas but by tabs)
    Worked fine as well.
    Please try the above mentioned steps and see whether you still get the error.
    ~Dietmar.

  • Can not Insert data to Microsoft Access successfully

    I am using Microsoft Access database, and trying to insert some data into a table with a "while" loop, but every time, the last row can not be inserted although the return value of the "executeUpdate()" is 1, can anyone tell what's wrong with that? thank you very much

    http://forums.java.sun.com/thread.jsp?forum=48&thread=147704
    Sounds like it may be the same "glitch"
    Jamie

  • Can't view Microsoft Access data

    Hello,
    I am trying to use a Microsoft Access database (97) as a data source for my repository. I can import it in the Administration Tool and see all the tables. When I finish my repository the global consistency is without errors.
    Then I go to the Answers and make a table, here I see the repository but when I try to view the results it returns only values from the other data source.
    I am using OBIEE 10.1.3.3.2
    Anyone got a suggestion?
    Rgds,
    Dennis de Kock

    I cannot see data at column level either.
    Perhaps there still is a (logical) problem in your logical model.
    I suggest to quickly create a new business model, just for testing. Drag and drop 1 table from your access source twice to the business model. Create a complex join between table and table#. Put an aggregate on one number field in table#. Drag/drop business model to presentation layer.
    Have a look if you now have data from this table in Answers.
    Regards

  • "An error occurred accessing your Microsoft SharePoint Foundation site files" connecting site with SharePoint Designer

    I have a SharePoint 2013 environment with 1 AD Server, 1 DB Server and 1 APP Server, with 13 Web Applications running under the SharePoint.
    Recently I rebuilted the application because of some infrasctrucutre problems, and I was able to solve all of them, except one. I can't connect to any of those 13 Web Apps with SharePoint Designer. When I try to connect, it always ask credentials, then it
    seems like loading the site, then the error appears:
    "An error occurred accessing your Microsoft SharePoint Foundation site files. Authors - if you are authoring against
    a Web server, please contact the Webmaster for this server's Web site. WebMasters - please see the server's application event log for more details."
    I've spent hours troubleshooting it, but none of the information I found was valid. I've already tried to clean the cache, but didn't work. I found plenty of related data of this
    error with FrontPage and old versions of SharePoint, but nothing helped. All the Web Apps are SPD-Enabled at Site Collection Administration. I've tried connecting from many different PC's. The 15/LOGS folder doesn't get any data from this error, neither the
    Event Viewer.
    I really don't know what else to do. Please Help!

    I found the answer of my issue was in a .NET Agent installed by NewRelic on the server. I found a connection trouble with Fiddler, then I end up figuring this out:
    This can be the result of Real User Monitoring so the first step in troubleshooting would be to disable it and see how it affects the application. The .Net Agent injects snippets of javascript into the header of pages sent to the users browser to measure the
    page load time on the user's end.
    You can disable RUM by editing newrelic.config and changing this line:
    <browserMonitoring autoInstrument="true"/>
    to this:
    <browserMonitoring autoInstrument="false"/>

  • Error. your computer must be running a supported version of Microsoft Visio and a browser that supports opening files directly from Visio Web Access.

    I have the following inside my SharePoint server 2013 :-
    EnterPrise Wiki site collection.
    i have both "Excel services Application "& "Visio Graphics Service" running correctly.
    The problem i am facing is as follow:-
    when a user click on an Excel sheet or Visio document , it will be shown inside the browser without any problem.
    but if the user click on "Open in Visio" OR "Open in Excel" links inside the browser, they will get the following errors:-
    Sorry, but to open this workbook, your computer must be running a supported version of Microsoft Excel and a browser that supports opening files directly from Office Web Apps.
    To open this document, your computer must be running a supported version of Microsoft Visio and a browser that supports opening files directly from Visio Web Access.
    I have the following settings inside my PC:-
    Office 2010 for Excel, word, power point,etc.
    Visio 2013.
    i have disabled SharePoint foundation support for office 2013
    Can anyone advice on this please?

    Hi,
    Please try to reset the Internet Explorer settings or open Internet Explorer in In-Private browsing and then check if this issue occurs.
    If the issue persists, please try to access SharePoint in another computer with Office 2013 and then check if this issue occurs. Or repair Office and restart your server.
    Here is a blog about the same issue for you to take a look at:
    http://sharepointexit.blogspot.com/2013/12/sorry-but-to-open-this-workbook.html
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Excel Automation with Interop - Windows Service - Microsoft Excel cannot access the file

    I have a windows console application, which automates Excel. In our scenario the application gets called from a Windows Service. If the console app is executed directly everything works fine. If the console app is executed through the Win Service, we get
    the following error when trying to open the excel file:
    Unhandled exception Occured : 'Microsoft Excel cannot access the file 'bla.xls'. There are several possible reasons:
    The file name or path does not exist.
    The file is being used by another program.
    The workbook you are trying to save has the same name as a currently open workbook.'.'
    The code snippet used to open the file:
    xlApp = new Application();xlApp.Visible = false;xlApp.UserControl = false;xlApp.Application.ScreenUpdating = false;xlApp.DisplayAlerts = false;xlWorkbook = xlApp.Workbooks.Open( Filename: filePath,  UpdateLinks: 2,  IgnoreReadOnlyRecommended: true, Editable: false);
    The console app and windows service are running on a Win Server 2008 64-bit OS with Excel 2013 32-bit installed. The service is running with a special user account, which has all the right permissions on accessed files and folders. The excel process is also
    started with the same account (I cheched that one). 
    I already tried to do the following, but to no avail:
    Run excel.exe /automation -> worked fine
    Created the folders and also gave full control to the account under which the service is run (even gave full control to Everyone)
    C:\Windows\SysWOW64\config\systemprofile\Desktop
    C:\Windows\System32\config\systemprofile\Desktop
    Configured DCOM
    Excel Application -> Identity -> Specific user account
    Excel Application -> Identity -> Interactive User
    Excel Application -> Security -> Launch permissions -> Everyone full control
    Several combinations of the above
    So I really am stuck with this problem right now. Any input on this is appreciated.

    I have a windows console application, which automates Excel. In our scenario the application gets called from a Windows Service. If the console app is executed directly everything works fine. If the console app is executed through the Win Service, we get
    the following error when trying to open the excel file
    Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office
    may exhibit unstable behavior and/or deadlock when Office is run in this environment.
    If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution. Or, you should try to find alternatives that allow at least part of the code to run client-side.
    If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. Additionally, you will be taking risks with the stability of your overall solution.
    You can read more about that in the
    Considerations for server-side Automation of Office article.

  • BlackBerry Internet Service with Microsoft Outlook Web Access account

    I need to switch my 8820 to a new work account.  They use Outlook Exchange 2003, but do not support BES.  I have access via both regular desktop Outlook and also Outlook Web Access (from a different server).   I read the procedure to use BIS in KnowledgeBase KB03133.  After entering my email address and password, I get a message that it was successfully set up.  But, I get no e-mail messages delivered.  When I check  the settings, it looks like it is not using the correct server for Web Access.  However, I can find no way to manually enter it - I don't get the error message described in Step 5 where I can pick "I will provide the settings."  I try to set up via computer but I get a message that my BIS cannot be accessed via HTML and need to set up on my BB.
    Any suggestions?  Would it work with a newer phone running a newer OS?  Do I need to check with AT&T if it supports Outlook Web Access?  Thanks in advance.

    Hi and Welcome to the Forums!
    Lot's of possible variables...here a several other KBs to try:
    KB03133How to integrate a Microsoft Outlook Web Access email address with a BlackBerry Internet Service account
    KB18567BlackBerry Internet Service cannot connect to a Microsoft Outlook Web Access account using Microsoft Exchange 2007 or Microsoft Exchange 2010
    KB15173Locate the mailbox name for a Microsoft Outlook Web Access 2007 email account
    KB04804Error message appears when attempting to integrate a Microsoft Outlook Web Access 2010 account
    KB02858Unable to integrate a Microsoft Outlook Web Access email address with a BlackBerry Internet Service account
    The trick to getting to the manual settings screen is to provide your valid email address, but an incorrect password...then, it will allow you to manually enter the settings.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Cannot display the folder. Microsoft Outlook cannot access the specified folder location.

    Hi, guys
    I cannot view delegate mailbox in Outlook. Following is my configure.
    I have two mailbox A-User and B-User
    Login Outlook as A-User, click File -> Account Settings -> Delegate Access, add B-User and give Editor permission of Inbox.
    Right click A-User's root inbox and select Properties -> Permission, select B-User and check "Folder visible".
    Login Outlook as B-User on other computer, click File -> Account Settings -> Account Settings, select B-User and click Change -> More Settings -> Advanced, add A-User.
    Now I can see a root A-User in Navigation Pane. But when I click it, it shows
    "Cannot display the folder. Microsoft Outlook cannot access the specified folder location."
    or
    "Cannot display the folder. Microsoft Outlook cannot access the specified folder location. The operation failed. An object cannot be found".
    I searched some solutions from internet, but all of them don't work. Could you give some suggestions? 
    Thanks.

    Hi,
    First, please double check if you have given the right permission to B-User on your step 2.
    In addition, we can try to give a higher permission to the B-user to check the result.
    Please feel free to post back and let me know the result.
    Best Regards,
    Steve Fan
    TechNet Community Support

  • How can I access files from a flash drive that were previously saved using a Windows computer? When I attempt to open the file on MacBook Pro, it is asking to "convert file to"; I also have Microsoft Word installed on the Mac as well.

    How can I access files from a flash drive that were previously saved using a Windows computer? When I attempt to open the file on MacBook Pro, it is asking to "convert file to"; none of the options I choose work. I also have Microsoft Office (with Word) installed on the Mac as well.

    Format the external drive as FAT32 or ExFAT. Both computers will then be able to read and write to it.

  • How do I open a pdf stored in a Microsoft Access database using Visual Basic studios 2012

    Currently I am unable to find a valid method of being able to open a pdf stored in a Microsoft Access database using Visual Basic studios 2012. I've tried displaying the entire database on a form, but when I do this all the other columns show up with
    the correct data besides the one containing the pdf's, it just displays <binary data> in each row down the column. I also tried another method with which you use the database as a dataset and can drag and drop the rows and columns into the form, which
    again works for all the other columns besides the one containing the pdf's but this time I'm unable to interact with the column  at all. 
    Not too sure if this is in the correct place, but any answers or help would be appreciated. Cheers.

    Alex,
    This forum is dedicated to Project and Project Server. You might get better response, if you post to a Visual Basic forum. Here are couple I could find. 
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral%2Cvblanguage&filter=alltypes&sort=lastpostdesc
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • The Microsoft Access database engine cannot open or write to the file in Report Builder 3.0

    I am trying to build a report in Report Builder 3.0.  I created the Data Source to point to my Excel file and the Data Set.  I drag a couple of fields on to the canvas and then choose Run.  I get the error:  "The Microsoft Access
    database engine cannot open or write to the file.  It is already opened exclusively by another user".  I am using the Excel driver.  Why am I getting this message?  How can I fix this?

    No, now I am getting the error message again.  It is quite long:
    ERROR [HY000] [Microsoft][ODBC Excel Driver] The Microsoft Access database engine cannot open or write to the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view and write its data.
    ERROR [01S00] [Microsoft][ODBC Excel Driver]Invalid connection string attribute Trusted_Connection
    Please help

  • How do I open a Crystal Report from Microsoft Access?

    I'm looking for step-by-step instructions on how to launch a Crystal Report from a Microsoft Access application (for a dummy like me).
    My Crystal Report uses a connection to the Access database as the data.
    I have Microsoft Access 2002 with Microsoft Visual Basic 6.5.
    I have Crystal Reports 2008 CR Developer 12.
    I'll need to know where to find the Visual Basic code references, and/or ActiveX Controls, if applicable.
    Thanks
    Janeen

    I concur with Don. Just a bit of help - a sample VBA app is here;
    https://smpdl.sap-ag.de/~sapidp/012002523100006013432008E/rdc_vba.exe
    But as Don mentioned, you will have to downgrade to CR XI r2 (or lower) to implement the above solution.
    Ludek

  • Insert into Microsoft access 2010 Database on sharepoint using OLEDB

    Hi,
    want to insert data into a microsoft access web db using oledb object. but the i am unable to open the database.
        dbLoc = "http://XXXX.com/project/design/Test_Web_DB
        Dim strConnection As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source= " & dbLoc
        Try
                con = New OleDb.OleDbConnection(strConnection)
                If con.State = ConnectionState.Closed Then con.Open()
        Catch ex As OleDbException
               MsgBox("OleDbException: Unable to Open DB")
        End Try
    it always go to the exception. is there any problem with the above code??

    Hey Bala,
    Browsing the link (as shown below) on the browser doesnt open the DB.
    http://XXXX.com/project/design/Test_Web_DB.accdb
    Instead, without ".accdb" works.
    my requirement is something like below, please recommend your suggestion
    1. i have a DB on access 2010, which gets updated on regular basis (currently db is on common location) by different VB.net application client my the network
    2. i want to create various reports out of the data and want them visible available on sharepoint.
    please help
    -Manash

Maybe you are looking for