Using new DriverClass() to load driver

we can load drivers in jdbc in 4 ways
1. using class.forname()
2.include drivers in [b]jdbc.driver[/b in java.lang.System property
3. using datasource
i know welll abt these 3
one more is there that is using newDriverClass() or new Driver()......pls suggest me and guide me properly

Well you can just instanciate the Driver like any other class and call openConnection on that.
I've found this to be the easiest way when loading a driver from a jar file accessed by a custom classloader.

Similar Messages

  • Need help with using new ipod as hard drive. please!

    Hi. Has anyone had any problems using the ipod as a hard drive between two systems? I have an old 4th generation ipod which I used on my PC. That ipod worked great between macs and pcs as a hard drive. But recently it is completely screwed up. Anyway, I got a new Mac book pro and a 5th generation 60gb ipod.
    Now, I'm trying to get some stuff off my pc and transfer it into my mac. In my pc it comes up in "my computer" but keeps asking me to format the hard drive whenever I do the drag and drop of files into it. I've already formatted it for my mac, but haven't put anything on it yet. So I guess I could just do that for the transfer and reformat it for the mac and then put my music on it.
    I just want to know, it worked so well between mac and pc as a hard drive when originally formatted for my pc. will it not work the other way around? Will I have to keep reformatting it for the pc every time and then lose any information and all my music if I want to use it in that way? Or is there something I'm doing wrong? I would really appreciate any help at all that anyone could give me. Who really needs a 60gb anyway, if not to be able to transfer files back and forth between home and work, right?
    Dell Dimension 4400/MacBook Pro   Mac OS X (10.4.9)   Windows XP on the PC

    Thank you for your reply. It cleared up a lot of confusion for me. But I have one more question.
    See, I looked both of those software applications up, and it seems those are to be installed on the windows operating system. My plan is to eventually stop using my PC and give it away to goodwill, however, for work purposes- which is freelance- I'd need to use the ipod as a nice small portable hard drive- I'm a photographer, and work with big files, so I need the larger space that a flash drive can't give me.
    So, is there any type of mac formatting on the ipod that can also be read by the pc? Or is there a 3rd party software that can be installed on the ipod that will enable it to be read on the pc and mac while retaining its mac formatting?
    If not I guess I'll just have to go back to the old and extremely inconvenient way of doing things. I really wish mac would have mentioned these things before in all their descriptions.

  • Trying to use new 500GB external hard drive for backup for first time

    I'm doing our normal Clonezilla Backup procedure and ran out of disk space for the first time.  The normal person who does this is on vacation.  I put the new hard drive in for the backup, but when I ran Clonezilla it didn't recognize it. 
    I looked in Server Manger and it shows it as Unknown with a red arrow and not initialized.  It's shown as unallocated.  What do I need to do at this point?  Do you have instructions or a link to instructions?  I'm new to working with servers,
    etc.  I probably need to format the new external drive but I'm not sure how.  This is a simple server, without VM's, etc.
    Thanks!

    Thank you for the updating.
    If there is still anything we can help please just let us know. 
    If you have any feedback on our support, please send to [email protected]

  • I have an old MACBook and want to use it as an external drive to load disks on to my new mac. How do I?

    I have an old MACBook and want to use it as an external drive to load disks on to my new mac. How do I?

    Apple makes a Thunderbolt to Firewire adaptor if your new computer does not have a Firewire port.

  • How do I share a hard drive with the new iMac to load a disk from macbook pro

    How do I share a hard drive with the new iMac to load a disk from macbook pro. I want to install office for Mac from a disk but dont know how to share har drive from macpro
    thanks

    The new iMac's don' t have DVD drives however almost all have a disk drive. The easiest method of installing MS Office for Mac on your new iMac is to download it from Microsoft and then input the code you received when you purchased your original license. Otherwise you can use the DVD drive on your MBP to install on your iMac, that feature is called Remote Disc. Instructions for Remote Disc can be found at:http://support.apple.com/kb/ht5287

  • How does one SUCCESSFULLY transfer Time-Machine backup to a new (larger) hard disk drive using OSX 10.5.8

    I have read a number of articles about how to transfer a complete Time-Machine backup to a new (larger) hard disk-drive.  Some of these articles are specifically for OSX10.6 users, which are not applicable to me since I am operating with OSX 10.5.8.
    However, I have tried several times to use the Disk Utility 'Restore' function, dragging my old time-machine volume into the 'Source:' box and my new volume into the 'Destination:' box.  This works, of sorts, BUT the newly created volume on the new larger hard disk-drive remains the same size as the original volume on the old Time-Machine HDD, with no apparent way of increasing the new volume's size.  So I am not really any better off:
    E.g. the total capacity of my new HDD is stated by 'Disk Utility' to be 465.8 GB, of which I'm told 228.2 GB is used for the Backups.backdb folder, but only 4.6 GB of free space is actually available.  Yet under the 'Partition' tab of 'Disk Utility' it tells me that there is still 236.4 GB of available space.
    Does anyone know how to resolve this issue without upgrading to OSX 10.6?

    First, how did you prepare your new drive?  See:
    Drive Preparation
    1.  Open Disk Utility in your Utilities folder.  If you need to reformat your startup volume, then you must boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID (for Intel Macs) or APM (for PPC Macs) then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    If you plan to partition this new drive then be sure you create a larger partition for TM than your old volume.
    Next, clone your old TM volume:
    Clone using Restore Option of Disk Utility
    1. Open Disk Utility from the Utilities folder.
    2. Select the destination volume from the left side list.
    3. Click on the Restore tab in the DU main window.
    4.Check the box labeled Erase destination.
    5. Select the destination volume from the left side list and drag it to the Destination entry field.
    6. Select the source volume from the left side list and drag it to the Source entry field.
    7. Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.

  • HT1151 I have my iTunes library on an external hard drive that was connected to a PC, now I want to connect to my new iMac and load the iTunes library onto that computer, can I do that?

    I have my iTunes library on an external hard drive that was connected to a PC, now I would like to connect that hard drive my new iMac and load the iTunes library onto that computer, can I do that?  Looking for a solution that keeps me from re-ripping my CD collection.

    Here are the official Apple Support instructions:
    http://support.apple.com/kb/HT4527
    Ciao.

  • Trying to use a new, larger external hard drive for my Time Machine backup.  However, every time I start the backup, it gets started then fails.  And, I can't delete the few files that did save on the external.  Sort of a catch 22.  Any ideas?

    Trying to use a new, larger external hard drive for my Time Machine backup.  However, every time I start the backup, it gets started then fails.  And, I can't delete the few files that did save on the external.  Sort of a catch 22.  Any ideas?

    Is it a USB hard drive?  USB hard drives have the problem of not giving full speed if they are hooked up on the same bus as keyboards and mice.  Double check your profiler to make sure that is not a problem.  If it is Firewire, make sure there aren't other firewire devices in use at the same time.  I recommend not only keeping a Time Machine backup, but also a clone, and if you do use Time Machine, to make sure the Time Machine drive or partition is at least twice the size of the original drive.

  • I have a new mini mac and i want to use my existing external hard drive but it needs to be reformated how do i do this without loosing all my old photos?

    i have a new mini mac and i want to use my existing external hard drive but it needs to be reformated how do i do this without loosing all my old photos?

    Formatting will erase the drive.
    You need to copy the photo's to either your old computer, the Mac Mini or to a new external drive and then decide what to do with your existing external drive.
    For example: You could use one External drive for Photo's and one external drive for Time Machine to backup both your Mac Mini and the Photo drive.

  • I Mini with an i7 processor. I would like to use Boot Camp to install windows based CAD software on my MAC. Would it be better to use a plugin external hard drive to load my software on and if so what hard drive would you recommend?

    I Mini with an i7 processor. I would like to use Boot Camp to install windows based CAD software on my MAC. Would it be better to use a plugin external hard drive to load my software on and if so what hard drive would you recommend?

    Thank you for your quick response. I can then use a ZIP drive for data storage. I want to keep as much of my hard drive free of data as possible.

  • How to install a new 360 GB hard drive to replace my 60 GB using Time Machine?

    How do I install a new 320 GB hard drive on my MacBook using Time Machine? I have purchased the hard drive and know how to take out the old drive and put in the new drive.

    To transfer your current hard drive I like the free application Carbon Copy Cloner. It makes a bootable copy of everything on your hard drive http://www.bombich.com/index.html

  • Can anyone help me figure out how to use my new LaCie external hard drive to import movies from my camcorder into imovie '09? I ran into so many problems last night!! Was up way past my bedtime!

    Can anyone help me figure out how to use my new LaCie external hard drive to import movies from my camcorder into imovie '09? I ran into so many problems last night!! Was up way past my bedtime!

    I'll stay in this chat ... I answered in the other one ... I have a Sony digital Handycam ... from years ago.  I just got the LaCie and I think I formatted it for only to be used on my Mac ... how should I go about reformatting it to be HFS Extended like you said?

  • When I load Illustrator creative suit (5.5) on my new computer, it loads Then I put in the serial number, which is correct, but when i go to click on the program to use it it says ERROR: localized resource file from this program could not be loaded. pleas

    When I load Illustrator creative suit (5.5) on my new computer, it loads Then I put in the serial number, which is correct, but when i go to click on the program to use it it says ERROR: localized resource file from this program could not be loaded. please re install of repair the application and try again. I have done this and it's still not working                  

    anomaly jade,
    You only need to use the serial number during installation.
    Have you, at least seemingly, been able to install, and then you are unable to start up?
    If that is the case, you could try to reinstall using the full three step way:
    Uninstall, run the Cleaner Tool, and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • How do i save a photo from iPhoto onto flash drive using new lion software

    Trying to save a photo in iphoto (using new lion software on my mac) to a flash drive.  There is no save button and can no longer just drag the photo into the drive.  Any ideas.

    You can select the thumbnail and type Command+C to copy it.  Then click on the Desktop and type Command+V to paste it.  That will get you the latest version of the photo in iPhoto.
    However, you should be able to drag the photo to the desktop.  Launch iPhoto with the Option and Command keys held down and rebuilt the library with the first and last options selected.
    Click to view full size
    If that doesn't do the trick use Disk Utility to repair disk permissions.
    OT

  • How can I use migration assistant to load my new Macbook Air?

    How do I use migration assistant to load my new Macbook Air?  Can this be done only wirelessly?

    No, you can transfer from a Mac wirelessly, wired ethernet, Thunderbolt or Firewire. Your older Mac must have the same connection, but you can use adaptors if necessary. For example, you can use an Ethernet cable with an Ethernet-Thunderbolt adaptor if your older Mac has an ethernet port.
    Wireless tends to be pretty slow (can take many hours) so it's recommended to choose a wired connection whenever you can.
    Here's more information:
    http://support.apple.com/kb/HT4889
    Matt

Maybe you are looking for