Cannot find the database driver

Hello,
I have a java project that I created a JAR file from, and it uses the MySQL database driver (com.mysqljdbc.Driver). I am trying to execute the JAR file with the following command:
java -classpath d:\mysqldriver\mysql-connector-java-3.1.14\mysql-connector-java-3.1.14-bin.jar -jar MyProject.jarThat gives me a ClassNotFoundException and I don't understand why!
Can anybody help me please?
Thanks.

First of all, the -jar and -classpath options are mutually exclusive (you can only give one option or the other).
So if you want to use the -jar option, then your jar's manifest file needs to specify the dependent classpath in it.

Similar Messages

  • Oracle connection: cannot find the database driver

    i have the following code:
    Class.forName("oracle.jdbc.driver.OracleDriver");
         // Create a connection to the database
         String serverName = "rana-etcsup3ueu";
         String portNumber = "1521";
         String sid = "ORCLE";
         String url = "jdbc:oracle:thin:@rana-etcsup3ueu:1521:ORCLE";
         String username = "scott";
         String password = "tiger";
         connection = DriverManager.getConnection(url, username,password);
         } catch (ClassNotFoundException e) {
              JOptionPane.showMessageDialog(null,"Coud not find the database driver ");
         // Could not find the database driver
         } catch (SQLException e) {
              JOptionPane.showMessageDialog(null,"Coud not connect to the database ");
         // Could not connect to the database
    but i have ClassNotFoundException that is cannot find tha database driver

    This clearly implies that your driver classes are not on the classpath.
    Ensure that the classes are reachable to your JVM.

  • HT4623 I have an iPhone 4S that i dont use anymore. It is locked with a password & i can't remember the password. i am wanting to let my child use this phone now but when i connect it to my computer it says that it cannot find the device driver. How can i

    I have an iPhone 4S that is locked with a password & cant remember password. when I connect to my computer it says that it cannot find the device driver. How can i fix this?

    Hello jlb1977,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    place the device in recovery mode and restore it to erase the device:
    Disconnect the USB cable from the device, but leave the other end of the cable connected to your computer's USB port.
    Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to shut down.
    While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
    Continue holding the Home button until you see the Connect to iTunes screen.
    iTunes will alert you that it has detected a device in recovery mode. Click OK, and then restore the device.
    Best of luck,
    Mario

  • This morning my PB G4 would not get to the password screen after power on.  I have rebooted many times and very loud noises (like a HD spinning/rubbing) emits. Tried the Install disk and it cannot find the hard drive. Ran HW test and got a "Mass storage E

    this morning my PB G4 would not get to the password screen after power on.  I have rebooted many times and very loud noises (like a HD spinning/rubbing) emits. Tried the Install disk and it cannot find the hard drive. Ran HW test and got a "Mass storage Error Code" message.
    Did my HD just crash and unrecoverable?  Time to replace my notebook?

    I believe your hard drive has failed. Hope you have a backup.
    Failing Hard Drive Sounds http://datacent.com/hard_drive_sounds.php
    Listed by drive manufacturer.  Click on the > next to the drive & you will hear the typical failure sound.
    How to Tell When Your Hard Drive is Going to Fail
    http://www.lifehack.org/articles/technology/how-to-tell-when-your-hard-drive-is- going-to-fail.html
    Grinding And Clicking – Symptoms Of A Failing Hard Drive
    http://pcperformancetools.com/getdata/grinding-and-clicking-symptoms-of-failing- hard-drive.html
    Failing Hard Drives
    http://losangelescomputerhelp.com/computer_networking_news/failing-hard-drives.h tml
     Cheers, Tom

  • Cannot find the installed driver for Canon Pixma ip6600D

    Hello,
    I'm pretty new with Mac and OS X and got one problem to use a previous installed driver.
    First, please excuse my bad english, I'll do my very best
    I've got a Buffalo Linkstation Live 320GB with implemented USB Ports.
    You can take the USB Port to use with a printer.
    The Linkstation will be a Windows Printserver.
    I've connected a Canon Pixma ip6600D at USB Port one and all works fine with Windows XP and Vista via network.
    Printing with this Network device uses Windows Network-printing like -> workgroup\buffalo\lp (lan printer)
    With Windows this works very well. But now im using OS X Leopard.
    So I've downloaded the Canon Mac OS X 10.5 Driver for the ip6600D (can be used for Network printing) and installed it.
    OS X wants to reboot, so I think the extension is installed fine.
    After this im going to "System adjustments" -> "Printers and Fax" -> "Windows" -> "Workgroup" -> "buffalo" -> "lp"
    The Printer is found and here comes my problem: The ip6600D driver does not appear in the drop down list. Only Gutenprint ip6700.
    I'm able to print with this driver, but it doesn't work very well and im not able to use CD printing.
    So, wehere ist the ip6600D driver? Lost in nowhere?
    If I want to search for the driver, nothing could be found.
    Searching with Spotlight for ip6600 doesn't find something to use.
    Only the installer image of the driver and some web links.
    How do I choose the installed ip6600D driver?
    Thank you much for any help.

    Since there doesn't appear to be an iP6600 driver within the Gutenprint v5.1.3 list, then you could try one of the other iP models, like the iP5200. The key is to find a model that uses the same ink tanks as your iP6600D (and preferably the same engine but that is not as easy to find). If one of the other IP models doesn't help, then you could try the S800. With older versions of Gutenprint I would recommend this model as it would be good enough for text printing, but not that good for images.
    If you are unable to find a compatible printer then you may have to look at changing some things. The Canon printer driver has not been designed to be used on the Mac OS X when the printer is being shared by Windows, hence the need to Gutenprint. If this model is not supported in later versions of Gutenprint, then you could look at using PrintFab (which you will have to pay for) or changing the network setup so that the printer is not connected to Windows, such as getting an Airport Express/Extreme. This would allow both OS's to connect to the printer using the Canon driver. Or you could connect the printer to the Mac and get Windows to connect to the Mac share using Bonjour for Windows.

  • Cannot find the "Database query" in CUIC 10.5

    Hi Everybody, 
    I am trying to create a custom report in CUIC (UCCX10.5)
    By following the instruction below: 
    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cust_contact/contact_center/intelligence_suite/intelligence_suite_1051/user/guide/CUIC_BK_CAD76E49_00_unified-intelligence-center-cust-report/CUIC_BK_CAD76E49_00_cisco-unified-intelligence-center-report_chapter_0101.html#CUIC_TK_C8A91801_00
    In "Create a Report Definition of Type Database Query" section, Step 7 "From the Query Type drop-down list, select Database Query"
    I cannot see this option, do I miss out anything ?
    Anybody can help?
    Thanks in advance
    Sam

    There are two version of CUIC, standard and premium.
    CCX comes with the standard version.
    In order to create new reports you need the premium version, this has the Report Definitions drawer that allows you to select the Database query and upload your SQL.
    You will need to create a report on a premium CUIC and then export and upload to the CUIC on your CCX system.
    You will need to install a premium CUIC system and you can get a demo premium license from the Cisco licensing portal that I think lasts for 90 days.
    Sorry you won't be creating any new reports on your CCX you can only customise the display of existing reports.
    Graham

  • Cannot find the "D" drive (CD/DVD)

    Hi
    There was a D drive on my laptop before and now there isn't.
    I have no idea how it vanished. The drive is for both compact discs and dvd discs.
    Now when i put discs in the drive they start to load but then finish. I cant find the drive on "My Computer" either.
    Could someone help me on how to get the drive back?

    Hi
    You mean the CD/DVD drive?
    In first case you should check if the CD/DVD drive appears in the device manager.
    If you will see an yellow exclamation mark near to the CD/DVD drive then you should remove the ODD from the device manager.
    Furthermore you should access the registry using the command regedit and should remove the Upperfilters and Lowerfilters values completely from the following registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}
    After this procedure reboot the machine again!

  • Installer cannot find the database instance

    I am installing SCSM 2012 R2, but when I try to connect to the database it gives incorrect instance names. We have two instances, one is the default and one is a named instance. But instead of showing the named instance name it says "Default2".
    Its exactly what's happening in this blog:
    http://adinermie.wordpress.com/2014/03/26/service-manager-2012-r2-installation-fails-to-identify-sql-server-instance-and-throws-access-denied-error/
    Even in the setup logs it is listing instances that are incorrect. It says "ServerName\ServerName, port" instead
    of "ServerName\InstanceName, Port".  The blog author didn't have a real solution except to re-install SQL.
    Is this a bug? And suggestions?
    - Get on the floor, do that dinosaur

    I ran the command line install and it was successful.
    I created the same circumstances in my lab while the install was going to see if I could re-create the situation, and I did. It appears that the GUI installer gets confused by the name of the named instance - MSSQLSERVER2. In the drop down it shows Default2
    and the error is "Access to SQLServer\SQLServer2 is denied." So I'm guessing that the installer just sees the MSSQLSERVER portion of MSSQLSERVER2, assumes its a default instance and looks for the server named instance which doesn't exist rather than the named
    instance.
    Bottom line is that the installer has a few kinks.
    - Get on the floor, do that dinosaur

  • Cannot find the Hard Drive on Disk Utility

    I am using an iMac (mid 2010) the factory Operating System was Mac OS X 10.6.4 and updated to Mac OS X 10.9.1.
    Following a "Flashinhg Question Mark" iMac was unable to boot.
    Then installed OS X on an external HD and boot the iMac. http://support.apple.com/kb/ht5911
    iMac is working with the external Mac OS but in the "System Preferenses>Startup Disk do not show the internal Hard Drive.
    Following this issue the iMac fan is working fast and noisy.
    I tried
    1. SMC reset
    2. PRAM reset
    3. Safe Boot
    4. Boot with the external USB Mac OS X
    nothing helped me.
    Thanks in advance for any guide.

    Cornelius,
    I was in the process of running Disk Utility last night to repair permissions when it gave me a message that it could not connect to Disk Management Unit (I think that was the name) and suddenly quit. I tried again, and the same thing happened. Then, the computer froze with the spinning rainbow again, and I had to do a hard shutdown. When I tried to restart, I got a gray screen. I tried squeezing the left corner again, and after a couple of attempts was able to boot the computer. However, it froze again and had to be shutdown. This cycle happened a few more times before I decided to give it a break.
    This morning, my husband turned it on to see what it would do, and it started up normally. However, we restarted it so that we could repair the disk, and it took several tries before it could see the HDD. I tried "repair," and it seemed to work for about a minute before giving me the same error message: "The underlying task reported failure."
    My husband and I believe we have some sort of logic board problem, specifically the ATA controller. What is your opinion, and what would you suggest next?
    Thank you for your help so far!
    -Brooke
    [By the way, I find it interesting that my forum register date is 7 days after yours. : )]

  • I cannot find the usb drive

    I have a macbook pro, running OS X Yosemite. I plugged in a valid USB and it does not show in Finder? Is there another way to locate it?

    Hello FifiMack,
    Thanks for using the Apple Support Communities. I understand that you are experiencing issues with a USB device with your MacBook Pro. The following resource may provide a solution:
    OS X Yosemite: If a USB device isn’t working
    http://support.apple.com/kb/PH19094
    Cheers,
    Matt M.

  • Cannot find the cd driver--- how sad is that??

    Just received a new lenovo x200.. but for the life of me, i do not see where we download cds...

    Hello,
    thex200 hasn´t got a cd/dvd drive, like x300.
    Follow @LenovoForums on Twitter! Try the forum search, before first posting: Forum Search Option
    Please insert your type, model (not S/N) number and used OS in your posts.
    I´m a volunteer here using New X1 Carbon, ThinkPad Yoga, Yoga 11s, Yoga 13, T430s,T510, X220t, IdeaCentre B540.
    TIP: If your computer runs satisfactorily now, it may not be necessary to update the system.
     English Community       Deutsche Community       Comunidad en Español

  • Cannot find my hard drive connected to my extreme

    Hi - I am using a Windows 7 PC and cannot find the hard drive connected to my airport extreme.  I have gone into manaul set up on the extreme and asked it to share the files which it has confirmed, yet when I go into windows explorer I cannot see the drive at all ...... can I please ask for some assitance?

    Just want to be sure of three things first if you don't mind:
    Does the 802.11n AirPort Extreme Base Station (AEBSn) have a Base Station Name that includes a space? For example: My AirPort Extreme. If it does, rename it so that it does not have any spaces or use the underscore character between words.
    Does the shared HDD have a volume name that includes a space? If it does, again, remove them or add underscore characters.
    Is the HDD formatted in NTFS? If so, the AEBSn does the best job of sharing HDDs formatted in HFS+, then FAT32. It will NOT work properly with HDDs formatted in NTFS. If the HDD is very high capacity, you may want to borrow a friend's Mac to format it in HFS+ or get a utility that lets your PC format/read/write to HFS+ volumes. Regardless of it being formatted in HFS+, the AEBSn will share it out using both the AFP (for Macs) and SMB (for Windows/Linux) file sharing protocols ... so Windows PC should not have any difficulty accessing it.

  • Cannot find my wlan driver

    Hi, I have a Toshiba laptop model number: PSM35E-000MN-EN but cannot find the wlan driver, can anyone help please?

    Satellite Pro M30-701 (PSM35E-000MN-EN)
    This site is for US computers. The downloads for your European model are here.
    -Jerry

  • The Operating System returned Error 27(The drive cannot find the sector requested.)

    On a Windows 2008 R2 server running SQL 2008 Standard on a Raid 5, when performing a backup on the databases via copy to another local drive I receive and The operating system returned error 27(The drive cannot find the sector requested.) to SQL Server during
    a write at offset 0x0000002fd204000 in the file F:\SQLDATA\Email_Images.mdf.   The server is a HP DL380p Gen8.  I've contacted HP thinking this was a Hardware issue but HP ensure me its not and to contract Microsoft support.

    Hi,
    Unfortunately, the available information is not enough to have a clear view of the occurred behavior. Please offer us what backup method you are using, did you want to backup
    the data to the CSV, the origional error you have got.
    1. The best method would be to have separate disk drive for each cluster SQL instance and add the disk to the specific SQL group and add it to the dependency of the SQL resource.
    There would be less overhead with this process other than having to create two disks, one of each instance
    2. You could consider creating a file sharing resource on cluster and add the backup disk to this resource group and use it to back up the databases of both the instances
    to single disk. The down side of this method would be, all the databases backups will fail if the fileshare resource goes down. You cannot use GUI to take the backup, need additional setup/maintenance for the fileshare resource group
    http://support.microsoft.com/kb/224967
    I’m glad to be of help to you!
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • I have a 160GB Hard Drive in my MBP and use VMWare Fusion and had a 60GB Virtual Machine running Windows XP. Deleted the Virtual Machine and CANNOT find the 60GB space I desperately need!  Anybody out there with a similar problem?  Help!

    I have a 160GB Hard Drive in my MBP and use VMWare Fusion and had a 60GB Virtual Machine running Windows XP. Deleted the Virtual Machine and CANNOT find the 60GB space I desperately need!  Anybody out there with a similar problem?  Help!

    Thanks - Of Course the first thing I checked and did.
    Disc Utility reads as follows:
    Capacity : 159.18 GB (159,182,127,104 Bytes)
      Format : Mac OS Extended (Journaled)  Available : 11.47 GB (11,472,896,000 Bytes)
      Owners Enabled : Yes  Used : 147.71 GB (147,709,231,104 Bytes)
      Number of Folders : 139,540  Number of Files : 511,832
    Activity Monitor(Disc Usage) shows something quite interesting.  Mac HD and Ramanan (Main User) - My hard drive is only 160GB!  Would the retired engineer gentleman please note as well.  Many thanks. Rams

Maybe you are looking for

  • Error message when trying to download icloud to my pc

    When trying to download iCloud to my pc note book, I am getting this error: "An error occurred during the installation of assembly 'policy.8.0 Microsoft, etc" Does anyone know why?

  • Lots of Duplicates in Itunes library

    I recently bought a Seagate external drive to back up my music, among other things, to using SyncToy. When finished I went to look at the results and found that SyncToy had not backed up all my music and those backed up had a lot of duplicates. Not s

  • Thin driver 8.1.6 capabilities

    hi i'm trying to get my connection pool (borrowed code - generic - and modified, ie. not using any oracle pool methods) working with my JSP. i'm using jdk1.3, Oracle 8i 8.1.6 db the thin driver is v8.1.6 JSP engine is Tomcat 3.2.1 it works fine for a

  • Reference and Assignment Synchronization Report for FBL5N Transaction

    is ther any standard report for ...Reference and Assignment Synchronization Report for FBL5N Transaction.

  • Error in characteristic properties in Web Analyzer

    hi we are in BI 7.0, I have this problem ; i run my query published on portal with WAD template; in BEx Web analyzer, every thing is fine. All the navigations and context menu are working very well except for characteristic properties, during Runtime