Opening an old DB from file

I'm trying to convert an old DB to my new DB. the old DB is in DBF format and access can read it so I gathered it's ODBC compatible. the thing is i don't want to install all the DBs in my windows and give them each a URL. can I just read the DB directly from file?
code snippet would be helpful.
Glazberg.

it doesn't work for me,but I'm guessing I'm writing the path wrong.
I tried:
String dbUrl = "jdbc:odbc:DRIVER={Microsoft dBase Driver (*.dbf)};DBQ=\"D:\\oldUnion\\New\\DATABASE.dbf\"";
String dbUrl = "jdbc:odbc:DRIVER={Microsoft dBase Driver (*.dbf)};DBQ='D:\\oldUnion\\New\\DATABASE.dbf'";
String dbUrl = "jdbc:odbc:DRIVER={Microsoft dBase Driver (*.dbf)};DBQ=\"D:/oldUnion/New/DATABASE.dbf\"";
but they all raise exceptions:java.sql.SQLException: [Microsoft][ODBC dBase Driver] '(unknown)' is not a valid path.  Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
     at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
     at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
     at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3028)
     at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
     at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
     at java.sql.DriverManager.getConnection(DriverManager.java:512)
     at java.sql.DriverManager.getConnection(DriverManager.java:193)
     at union.testClass.main(testClass.java:48)
     at union.unionMainClass.main(unionMainClass.java:43)

Similar Messages

  • How to open an old .book/ .doc file(s) and create PDF?

    Hi team,
    I seek your help and would like to know if you have a suggestion/ solution for the situation stated below −
    Situation
    Our development team received some files. These files seem to comprise of two sets of files and one .derive file. The sets seem to contain one .book and some .doc files each. The .doc files indicate that they are Microsoft 97-2003 documents.
    What I did
    · I tried to open the .book file with FrameMaker 8.0 or 6.0 and received an error message stating "Although <pathToBookFile>\abc.book appears to be a FrameMaker document, it can't be opened with this release of the product."
    · I tried to open the .doc file by using a text editor like MS Word97/ notepad and it displayed <MakerFile 1.03> in the File Conversion dialog box
    Saved .doc file as .fm and tried to import into/ create a new book
    Attempted to convert the .doc files by using an online conversion utility
    Opened by using HTMLDOC and DOXYGEN tools – displays BAD HEADER message
    What is required
    The files need to be converted to a readable format, preferably two separate PDFs.
    My questions
    ·         Are these FrameMaker files? Or do you suggest that they have been created by using some software other than Adobe FM?
    ·         If these are FrameMaker files – what version could they be (in view of the <MakerFile 1.03> tag)? is there a possibility that the files need a version older than Adobe FM6.0 to be opened?
    ·         How can I create a readable format (preferably PDFs) from the .book and .doc files?
    Please let me know any information that you may need.
    Thanks!

    If the .doc files actually have <MakerFile 1.03> at the start, then they're from the first release of FM. Check the book file in a text editor, to see if it has a corresponding <BookFile 1.03> in the first 16-bytes.
    These are very old files and hopefully without any corruption.
    You could try using FM's "heroic open" to see if anything can be recovered from these.
    First open/create a blank document.
    Next type <esc> o H to trigger the "heroic" open. It display a standard file open window, but this skips a lot of error checking and tries to pull whatever pieces it understands out of the file.
    You should then immediately save as MIF and then exit FM, so as to not leave it in a potentially unstable state.
    You can then open the MIF file in FM to see what's been recovered.

  • I can't open any new windows from File [New Tab] and from clicking on [+] , as I usually did. And [Ctrl+T] doesn't work for me.How I can make it to work for me again, please?

    I have to open the next window by right clicking on some link from previous site, who gives, '''''from drop down menu''''', option to [Open link in new tab] and then I can use that "fresh" tab.
    It is my desktop, if it's important to know for help.
    Please, some ideas, how to fix it, will be welcome.
    Thank you.

    Hi, were you able to resolve your problem? If so, please mark this question as '''Solved'''. Thanks !

  • Can I open my old project from logic 8 in logic 9?

    Hi,
    I am getting L9 (logic 9) but can someone tell me if I can still open a project that I've been working in L8 with L9 or not?
    Thank you

    ok, thank you very much!

  • I upgraded to 10.3 and tried to open an old project from 10.0 there are empty clips in the timeline and I've imported media to the library

    I get this msg when I try to relink my media files.  Im lost because I have not changed any formats or where the files are located.
    83 name matches were found, but 83 files are not compatible.
    Relinked files must have the same media type and similar audio channels as the original files, and must be long enough to cover all the clips that reference the files.
    Select a single item at a time to get information about why it is not compatible.

    Hi emeraldcleopatra,
    Why not mimic the settings you have for your 12" iBook that connects, trying the same for the one that doesn't and checking each setting that you have played around with.
    See if that works.
    regards roam

  • Upgraded to Lion without knowing I would no longer be able to open old Apple Works files.  Is there a way to solve this problem?

    Upgraded to Lion without Knowing I would no longer be able to open my old Apple Works files.  Is there a way to solve this problem.

    Pages will open the Word Processing ones.
    Regards
    TD

  • Safari opens with old tabs on start up

    Safari keeps opening with old tabs from about 3 weeks ago rather than my home page. On start up safari is showing as open and there is a folder in the right hand part of the dock. This has the old tabs in it and safari opens with these and not my home page. I've seen other threads which advise to ensure preferences are set correctly etc but none of this has worked. All settings are for my home page to open and not previous windows. What confuses me is why these particular old tabs are opening. Any ideas how to get rid of them and for safari to start opening with my home page again. Thanks.

    I have been experiencing the exact same issue as eddiethered for the past 2 weeks, I'm having 4 old browser tabs open everytime I launch Safari.  This is not an issue of a settings configuration, it is an issue of a bad .plist or cache from what I can tell.  Like eddiethered, I have ensured the following:
    My default homepage is about:blank, so upon Safari launch nothing other than a blank page should appear.
    It is not an issue of restarting the OS and having "Reopen windows when logging back in" checked off, when I restart I ALWAYS uncheck that - but in the past week the same apps seem to relaunch automatically when they shouldn't.
    This is not an issue of previously closing vs quitting the Safari browser, I Command-Q all my apps when I am finished with them.  Even when I hard-quit Safari, the old 4 browser tabs/websites reappear.
    This is not a issue of Login Items as I don't have a single application listed as a Login Item for my Username.
    I've also noticed other apps having issues (iChat, Chrome).  As of now Firefox is the only browser that is launching without any issues.  Yes an OS reinstall could be an option but that is a substantial amount of effort I don't want to invest.  Due to the other apps having issues this may be an issue at the OS level and not Safari.
    Any advice would be greatly appreciated.

  • Pages 08 won't open my old pages file

    I just upgraded to Pages 08 and when I try to open the file I was working on yesterday, with the previous version of pages, it says "The document...couldn't be opened". How can I open the old pages file with the new version?

    It may be useful to trash the preferences file:
    <bootVolume>:Users:<yourAccount>:Library:Preferences:com.apple.iWork.Pages.plist
    But I'm afraid that the document is corrupted.
    Control click its icon then select the "Show package's contents" in the contextual menu.
    The standard contents is:
    Contents
    QuickLook
    index.xml.gz
    The described message is displayed when there is no "index.xml.gz" (or "index.xml") file.
    It is also displayed when the "index.xml.gz" (or "index.xml") is badly formed.
    The index may be dropped when the documents where stored on an iDisk.
    Yvan KOENIG (from FRANCE jeudi 28 août 2008 12:21:36)

  • I have an old mpg video file, taken with a very early model "smart phone", that opens and plays fine in my newly "rebuilt" iPhoto library. I cannot open, edit it or share it with any other software. How can I fix it, to be able to do anything with it?

    I have an old mpg video file, taken with a very early model "smart phone", that opens and plays fine in my newly "rebuilt" iPhoto library. I cannot open, edit it or share it with any other software. How can I fix it, to be able to do anything with it?
    Detail:
    I've recently purchaced a 4TB Thunderbolt drive to store my "vast" music and photo libraries. iPhoto had an issue reading the moved library, so I bought and used iPhoto Library Manager to "rebuild" it. Apart from much of the original data such as date taken & camera used etc, it appears to be working well. The aforementioned mpg video was taken some 9 years ago, using an early model "iMate" smart phone, and opens and plays fine on iPhoto, but I cannot open it with anything else, (I've tried iMovie, VLC players, Wondershare and Handbrake) nor can I share it. I just want to edit it, and share it with family.
    Any help would be appreciated...

    No - not iMovie, VLC, Wondershare or Handbrake... Quick time starts with a "CONVERTING", then I get
    I've looked at the "tell me more" links, tried downloading some of the movie players there. I'm begining to think the file is corrupt.
    Thanks for getting back to me again though - appreciate it...

  • Hi, I'm an eBay seller and save old eBay auction files to my hard drive for future refence. Firefox no longer opens these files correctly (see below).

    Hi, I'm an eBay seller and save old eBay auction files to my hard drive for future refence. These files which all use the same name but are saved in a different folder for each eBay auction no longer open correctly -- much of the eBay auction text information shows up for a split second and then disappears -- the area at the top of the saved eBay auction file then collapses -- the original eBay auction photo of the product shows up as well during that split second but disappears when the other auction text disappears. These eBay auction files open correctly when opened using Internet Explorer. In Firefox, Firefox adds some strange information at the end of the file name when it is opened which is not a part of the actual file name itself (i.e. here is the original file name which is the same for whatever ended eBay auction I open: eBayISAPI.dll.htm -- here is the altered file name after Firefox opens it: eBayISAPI.dll_files/eBayISAPI_data/eBayISAPI_002.htm#ht_658wt_1349 -- yes, it is that long -- the last part is slightly different for each separate auction file that I open). None of this happened until recently. The files open this way whether using Firefox 4.0, Firefox 3.6.16, Firefox Safe Mode 3.6.16, and Firefox Safe Mode 4.0.

    Here is what I did:
    1) In Firefox 4.0, I opened the Bookmarks on the Menu Bar at the top of the screen. I clicked on the Import and Backup menu. I then exported all my bookmarks to the PC's desktop using the default file name BOOKMARKS.HTML.
    2) In Firefox, I opened the Add-ons menu under Tools on the Menu Bar. I clicked on the Prnt Scrn key on the top right of the PC's keyboard in order to obtain a screen shot of all the Firefox add-ons. I then opened Microsoft Word and pasted the screen shot using the Control V command (Ctrl V). I then saved the Microsoft Word file on the PC's desktop for future reference.
    3) I then opened the Control Panel in the Start menu (accessed from the little Windows world globe on the bottom left of the screen -- the operating system is Windows 7).
    4) In the Control Panel, I opened Uninstall A Program in the Programs section.
    5) I uninstalled Firefox 4.0 clicking on the box "Remove my Firefox personal data and customizations" in order to remove whatever bug in my Firefox customizations was causing the two errors above (this is the MOST IMPORTANT PART of this whole process which is why I saved all my bookmarks as an HTML file and saved a screen shot of all the Firefox add-ons).
    6) I then reinstalled my old Firefox 3.6.16 version obtained from the following link: http://www.mozilla.com/en-US/firefox/all-older.html (I am not yet in favor of using Firefox 4.0 -- you suppose you can reinstall Firefox 4.0 on your system if you want).
    7) After Firefox 3.6.16 was reinstalled, I had to import all my old bookmarks. Under Bookmarks on the Firefox Menu Bar at the top of the screen, I clicked on Organize Bookmarks. I then clicked on the Import and Backup menu and then the Import HTML command in order the BOOKMARKS.HTML file saved on the PC's desktop.
    8) I then re-added all my favorite Firefox add-ons by clicking on Add-ons under the Firefox Tools menu and then clicking on the Get Add-ons command. I then searched for all the old add-ons I wanted to re-add to Firefox using the Microsoft Word document on the PC's desktop saved with the screen shot of all the old Firefox add-ons on my system by I uninstalled Firefox 4.0.
    9) I then opened one of the old eBay auction page files saved on my hard drive under the eBay default file name "eBayISAPI.dll.htm". The file opened perfectly with NO missing sections and no missing original eBay auction listing photo! the file looked exactly like it did as if I was logged into eBay and looking at the original ended auction.
    10) I then opened Hotmail in Firefox and received NO "update your browser" message! I was able to open all my old emails and write and send new emails (with all my Contacts being automatically detected when I went to type in the email address of the person I was sending the new email to)!
    In summary, you need to uninstall Firefox 4.0 being sure to click on the "Remove my Firefox personal data and customizations" box during the uninstall process. Be sure to save/export all your old bookmarks before the uninstall process and make a note of all your old add-ons. Then reinstall whatever version of Firefox you are comfortable with. Apparently, my Firefox customizations had become corrupted at some point; removing the Firefox customizations during the uninstall process allowed any future Firefox version installed on my PC to start over with a clean slate (these corrupted settings would show up in whatever version of Firefox I had installed on my PC so removing them during the uninstall process was the key to solving all my Firefox bugs). I hope my suggestions help to solve your problem and good luck!

  • Can't open old appleworks/clarisworks files

    I have just purchased the new intel iMac and cannot open my old clarisworks/appleworks 5 files properly. I imported them from my old 333 MHz/OS 9.2.2 iMac using a jump drive. Is my best option to try MacLink? I will be purchasing MS Word also but have found that some of the old files will not format properly when I try to open them in the trial version of Word which came with the new computer. The text files are fine when I open them in Word but anything like tables, charts is a formatted mess. I did use MacLink on my old iMac and found it worked well but it is a bit more expensive now than when I bought it before ($20) .

    Thank you Peggy and Barry. I never realized that the jump drives were formatted to Windows or Mac but I am really new at some of these advances in file transfer as well as just about everything else in Apple Computer land. However, regarding the jump drive which I used to transfer the old files: it is a Lexar Jump Drive 2 GB, USB 2.0 Flash Drive. The installation notes indicate that it is for "Windows 2000/Me/XP and Mac OS 9.0 or Higher. No driver installation required. Plug the JumpDrive into the USB port on your computer and it's ready for use." That would indicate to me that this is probably not the problem. As I indicated before, the old files which are straight text which were created in AW 5 or perhaps even earlier versions and/or Clarisworks open perfectly, properly formatted, etc. when I drag them onto the trial version of Microsoft Word located on the dock of my new computer. My problem is with charts created in the word processor and spreadsheets which display as garbage when I drag them onto MS Word. Regarding the ethernet option, I would think that I still would have the same problem since I have no appropriate program on my new computer to open those old files - the trial version of MS Word isn't doing it for all the files. There are no firewire ports on my old iMac so that is not an option. I have come to the conclusion that Peggy's suggestion of purchasing AW 6.2.4 at the very reasonable price of $24.99 from Hardcore Mac sounds like the most promising option since I would then have an application on my new computer which should open the old files assuming that it does recognize the old AW created files (I believe that some of them were created in versions earlier than AW 5). I am assuming that the intel processor in my new computer isn't going to be a problem with AW 6.2.4. So I'm ready to purchase this program. Does this sound like the most reasonable course of action to follow? Thanks again for your help.

  • Opened a bogus email *.zip file from amazon that put two files in my downloads folder OSX 10.8

    Hi
    Can anyone advise my next steps to take, I accidentally opened a bogus email *.zip file attachment from 'Amazon" It unzipped an put two files in my downloads folder one appeared to be a *.exe file. They were deleted immediately along with the email.
    Now I am terrified that there is something lurking on my system...trojan/ keylogger/ virus..
    I am no expert so can anyone give me help!
    My mac is 8 months old running OSX 10.8 with latest updates.
    Thanks Mick

    Thank you both, you have put my mind at rest.
    Normally I am red hot at intercepting bogus emails, not today it would appear!
    I actually was in the process of deleting it and double clicked the file by complete accident, and in a flash it had opened up and put the files in the folder, I spent the rest of the afternoon panicing and reading all forums blogs etc..
    Actually Thomas I found your blog and took some good tips from it, one of them was to switch java off immediately.
    Thanks again
    Mick

  • Opening a PDF document from an exe file

    How can I open a PDF document from a executable file??
    A friend has told me to use this:
    fscommand ("exec", "anexo01.bat")
    but it opens a black pop up window before opening the
    program..... and it don´t seems to be a good solution.....
    can someone help me on this?
    thanks!!
    Sofia
    thanks for the help.

    > How can I open a PDF document from a executable file??
    > A friend has told me to use this:
    > -------------------------------------------------
    > fscommand ("exec", "anexo01.bat")
    > -------------------------------------------------
    > but it opens a black pop up window before opening the
    program..... and it
    > don´t seems to be a good solution.....
    > can someone help me on this?
    You can't avoid the echo box, unfortunate but that's the
    compromise if you go with
    the BAT file method.
    For many years I have been using Flash Jester tool call
    JStart. Works like charm
    all the way, no extra pop up windows :)
    http://flashjester.com/?section=tricks_jtools_jstart
    JStart will allow you to not only launch a program, but use
    parameters to make the
    program open files, perform special actions and just about
    anything you can use
    parameters for. You can also choose to launch files with
    their default associated
    program.
    Another solution is provided by by Rick Turoczy, it's pretty
    old but should still
    work. Perhaps give it a try.
    http://www.flashgeek.com/tutorials/07_launchapp_01.asp
    Easy to use tool that allow you to launch basically anything
    from the projector.
    As long as there is system default application supporting
    particle file.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Need help opening really old FreeHand files

    I have some very old FreeHand files, I'm not sure what
    version but probably around v.5 or so. I have all the source files
    and fonts and I'd like to reconstruct FreeHand files in version 10
    or even 9 if possible. Problem is I can't open the old FreeHand
    files through the menu options or by dragging the files onto the
    app icons.
    Does anyone have any suggestions? I downloaded FreeHand BNDL
    Resources from FreeHandSource.com a while back but they didn't seem
    to do anything. Any help is appreciated.

    dugost wrote:
    > I have some very old FreeHand files, I'm not sure what
    version but probably
    > around v.5 or so. I have all the source files and fonts
    and I'd like to
    > reconstruct FreeHand files in version 10 or even 9 if
    possible. Problem is I
    > can't open the old FreeHand files through the menu
    options or by dragging the
    > files onto the app icons.
    >
    > Does anyone have any suggestions? I downloaded FreeHand
    BNDL Resources from
    > FreeHandSource.com a while back but they didn't seem to
    do anything. Any help
    > is appreciated.
    >
    Are you on a Mac? If your version of Freehand can open the
    version the
    file was saved as you can open the file by dragging it to the
    application icon while holding down the option and apple
    keys.

  • What version of Photoshop do I need on new MBP with 10.6.3 in order to open old Photoshop 7 files?

    I have been using Photoshop7 for many years on a 10.2.8 Powerbook G4.  Just purchased a MacbookPro 2.4 with OS 10.6.3.  I found out that only CS4 and CS5 will run on Snow Leopard.  I have not been able to find out if either will read PS7 files.  Has anyone had experiences with this?  I've transferred all of my PS7 files to the new computer but have yet to purchase anything to read them.  Would appreciate any help.

    Photoshop 7 stopped working with OSX version 10.5. This is not a new issue and is covered in the FAQs.
    As Chris points out CS5 is the only version for sale now and there is no upgrade path from Photoshop 7 to CS5.
    I am not trying to download the Photoshop7 program to My MBP with OS10.6.3.  I am planning to purchase the new version.  I just wanted to make sure I could open my old PS7 files with the new version of Photoshop.  PS7 was on my old Powerbook.  I only transferred the files to the new computer.

Maybe you are looking for