How can I made thirdparty JDBC-driver to be available under J2SDK?

I have J2SDK installed into directory C:\j2sdk1.4.2_07
OS is WinXP
I compiled simple example java-file that accesses a mySql-DB
It uses following line
Class.forName("com.mysql.jdbc.Driver")
But the result if it is
ClassNotFoundException: com.mysql.jdbc.Driver
SQLException: No suitable driver
How can I made this calls to be available for the system?
I have downloaded him in a jar-file from mysql-site and kopied into
C:\j2sdk1.4.2_07\lib directory, but thet doesn't help
What am I supposed to do?

Another two tries and again no success:
C:\j2sdk1.4.2_07\bin>java -classpath t:\yura\mysql-connector-java-3.1.10-bin.jar;.CreateCoffees
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
C:\j2sdk1.4.2_07\bin>java -classpath t:\yura\mysql-connector-java-3.1.10-bin.jar; .CreateCoffees
Exception in thread "main" java.lang.NoClassDefFoundError: /CreateCoffees
The difference between two commands is a space between ; and a dot(.)

Similar Messages

  • How can I find the JDBC Driver version

    Hi,
    How can I find the JDBC Driver version installed on my Sun Solaris machine which
    has Weblogic Server 7.0 installed on it. Is there some kind of tool/command to
    do so or does Weblogic console say something about it
    Thanks
    Parikshit Khanna

    Parikshit Khanna wrote:
    Hi,
    How can I find the JDBC Driver version installed on my Sun Solaris machine which
    has Weblogic Server 7.0 installed on it. Is there some kind of tool/command to
    do so or does Weblogic console say something about it
    Thanks
    Parikshit KhannaThere is a jdbc DatabaseMetaData call getDriverVersion().
    The best thing to do is to download Oracle's latest appropriate
    driver from their site, and edit the start-weblogic script to
    make sure the downloaded driver is ahead of any weblogic stuff in
    the server's classpath. We do ship a driver, but Oracle usually
    has a newer better one very soon after that...
    Joe

  • How can I delete a duplicate drive in the folders area?

    Not sure how I ended up with a shared network drive duplicated under the folders area of Lightroom 3.6.  Maybe it was a user error but now my network drive where I have 15,000 pictures appears twice in the folder area and it is constantly updating (since there are quite a few pictures).
    How can I delete the duplicated drive?  I have "removed" all the folders under the duplicated drive (and made it disappear) but the drive keeps coming back as the synchronization process will add all the folders that exist on that drive.
    The two drives with "Volume_1" in the name are actually one shared network drive (I only have one).
    I actually removed my network drive mapping (N:) to fix the problem but that did not even work; LR still found a duplicate name for the same network drive and started to synchronize (again). Help!!

    I found pretty good super users and a solution here:
    http://www.lightroomforums.net/showthread.php?14294-Remove-external-drive-from-Folders-vie w

  • How can I clean my hard drive?

    Hello everyone,
    My macbook is now four years old and the last wipe is a while ago. My hard drive is quite ful and I don't really know what I can delete and what not. There's also 26 GB in Movies which don't appear nowhere. I really would like to get rid of them but don' know how. So, is there an application like CleanMyMac that is of any use or how can I wipe the hard drive myself (after I saved all my data)?
    Thank you for your help,
    Julia

    I made my partition and am currently reinstalling mountain lion to put on my flash drive. I'm using Lion disk maker 2 thats compatible with mountain lion. I'm doing it right, correct?

  • How to efficiently use an jdbc driver

    hi,
    I have used ifxjdbc.jar for connecting to informix server.
    But i have used that only for query execution.
    I want to know how one can efficiently use a jdbc driver.
    What all the classes that are coming with a .jar file.
    Please help me
    thankz to all

    Add ifxjdbc.jar to classpath.
    Driver Class name is com.informix.jdbc.IfxDriverConnection url is jdbc:informix-sqli://<host>:<port>/<database>:INFORMIXSERVER=<server>Datasource class is com.informix.jdbcx.IfxDataSource

  • How to delete a registered jdbc driver

    I configured a third party jdbc driver but it's wrong. I tried to remove it but I can't find any way to do so. can any body tell me how to remove a defined jdbc driver(not remove a connection.) thanks.

    Registered third-party JDBC drivers can be deleted or edited by opening the 'Preferences' dialog (select the 'Preferences' menu item from the 'Tools' menu) and selecting the 'Database Connections' item on the left-hand tree. The resulting panel has a list of the registered drivers; select the one you wish to delete and click the 'Delete' button.
    - John McGinnis
    Oracle JDeveloper Team

  • How can I remove the hard drive from an iMac g4 before recycling it?

    How can I remove the hard drive from an iMac g4 before recycling it?

    There are take-apart guides online.  For example
    http://www.xlr8yourmac.com/systems/imac_g4/imacg4_takeapart.html
    However, you can also consider securely erasing the hard drive instead.  You can do this using a Mac OS X installation disc with a version that your iMac G4 can boot from the optical drive.  If this is a viable option, please post back (include Mac OS X version on installation disc).

  • How can I Replace a Hard Drive on a 160gb iPod Classic?

    How can I Replace a Hard Drive on a 160gb iPod Classic? I am considering buying an iPod Classic off of eBay which is described as 'broken' and having the 'Red X' showing up on the screen. The seller is starting the bid at a very low price, which raises some concerns for me. For this thread, let us assume that the iPod has a broken hard drive that needs to be replaced in order to function properly. I am assuming that merely 'restoring' it would not suffice. How would I be able to replace the hard drive myself, without bringing it in to a store? I have never fixed an iPod's hardware before, nor a computer or any electrical device. I am a novice at such things. Would I be able to fix it myself without wasting money on a broken iPod and new hard drive? Please provide instructions on how to do so =)

    Hello there,
    Yes, the red X icon is usually a sign of a bad or damaged hard drive. Sometimes, restoring the iPod will resolve the issue, but rarely. Other users were able to smack the ipod against the side of their leg and gain back full functionality of the iPod.
    However, if no such luck with either, your next option would be to replace the drive. For this task, you can either opt to repair and replace the hard drive yourself, or opt to send it into a third party repair business to do the job for you.
    I use the guides at [www.ifixit.com|http://www.ifixit.com> to help me replace broken parts on an iPod. These guides provide excellent step-by-step instructions as well as photos on how to repair any part from an iPod.
    Some other good sites for purchasing repair parts include the following:
    [iDemiGods|http://www.idemigods.com>
    [RapidRepair|http://www.rapidrepair.com>
    [iResq|http://www.iresq.com>
    Lastly, I would also like to remind you that ebay also has several great deals on excellent iPod replacement parts. It's where I purchase a majority of mine.
    Hope this helps.
    B-rock

  • How can I put a hard drive icon on desktop?

    how can I put a hard drive icon on desktop?

    Click on the Desktop. Select Preferences from the Finder's menu. Click on the General icon in the toolbar. Check the appropriate boxes.

  • How can I get a better driver for my 1394b Hostcontroller in my Macbook pro 2010 to solve the problem, that it is too slow under Windows 7 installed with bootcamp ?

    How can I get a better driver for my 1394b Hostcontroller in my Macbook pro 2010 to solve the problem, that it is too slow under Windows 7 installed with bootcamp ?
    WIndows can't find a better one than the installed LSI Conformed 1394 Hostcontroller

    Read and follow the Bootcamp Installation instructions that you were offered to view when you ran Bootcamp Assistant.
    Run Bootcamp Assistant again and select the option to download the Bootcamp Support software. Follow the instructions. Then boot into Windows and install the Windows Support software you downloaded and saved.

  • Help! When i connect my "iomega" External hard drive to my mac it does not show in devices or on the desktop, how can i access my hard drive?

    Help! When i connect my "iomega" External hard drive to my mac it does not show in devices or on the desktop, how can i access my hard drive?

    what format your iomega HD is it NTFS , if NTFS try download   http://www.apple.com/downloads/macosx/system_disk_utilities/ntfs3g.html

  • How can I add the hard drive icon to the menu bar on a MBPr

    How can I add the hard drive icon to the menu bar on a MBPr?  I have downloaded Google Earth and it wants me to drag it to the hard drive for install. I was able to display the icon but now I would like to put it on the menu bar. Is this possible? Or can I add it to the hardware section under system preferences?
    I'm a new Apple user, coming out of the dark ages of a lifetime in the PC Windows world.
    Thanks

    It's on your Desktop, is it not? You cannot put it on the menubar through OS X although you may find third-party utilities that will. If you want it on the Desktop:
    Select Preferences from the Finder's Finder menu and check the desired boxes:
    Click on the Sidebar icon in the toolbar to set what you want displayed in the Sidebar.

  • How can i made changes in a site at that way that other sites do not change automatically

    when i change a site (index.html), all the other (sub)sites change also with the same settings. how can i made changes in, for example index.html so that other (sub)sites do not change?
    i see that the file extension is .css when i make an new site. then i save the site to index.html and the other sites changes also when i made changes in index.html (i mean the settings)

    I'm not sure exactly what you are asking, but it sounds like you are making changes to a cascading stylesheet (a .css file) that is shared by several pages on your site, but ony want to make the change to the style on the home page.
    You can do this by adding inline css to the home page elements you want to be styled differently from the rest of your site.
    An example of an inline css definition would be something like this...
    <div id="content" style="background-color:blue;">
    In the above example, the div would be styled using whatever you have written for the #content id in your css. It would also then overwrite any background-color declared in the external .css file with the style attribute to make the background blue.

  • How can I erase my hard drive?

    I just sold my computer. How can I erase the hard drive? Thanks1

    To prepare it for sale you should follow these instructions:
    What to do before selling or giving away your Mac
    In addition to the above:
    If you enabled FileVault, disable it in System Preferences > Security & Privacy.
    "Deauthorize" your iTunes account. Same for Audible if you have one.
    System Preferences > iCloud > de-select "Back to My Mac" and "Find my Mac".
    Sign out of iCloud. Select "Delete from Mac" when it appears.
    Then:
    Start your Mac with its original System Installation DVD (if your Mac shipped with one) or OS X Recovery (if it didn’t).
    Remove any Open Firmware password if you created one: select Firmware Password Utility from the Utilities menu and remove it.
    Select Disk Utility from the Utilities menu.
    Remove any partitions you may have created.
    Select the Mac's hard disk icon, then select the "Erase" tab.
    Select the "Security Options" button and erase the disk.
    The more "securely" you erase the disk, the longer it will take. The fastest method is sufficient since all but the most expensive techniques and equipment will be able to recover securely erased data.
    When it finishes, quit Disk Utility.
    Select Install Mac OS X from the Utilities menu. Do not create any user accounts.
    When it finishes, shut down the computer.
    If you want to install the bundled apps that were included with your Mac, restart by using your Applications DVD and install the bundled apps.
    Don't forget to include any DVDs that came with your iMac, your AppleCare certificate if you bought it, printed documentation, even the box if you still have it.
    Execute a bill of sale showing the Mac's serial number.
    Once no longer in your possesion, remove the Mac from your devices in My Support Profile.

  • How can i add the hard drive to my desktop

    how can i add the hard drive to my desktop

    bobbyruff,
    open the Preferences in Finder and click on the General tab. Look for a checkbox entitled “Show these items on the desktop: Hard disks”. Check it and close Preferences.

Maybe you are looking for

  • Bootcamp Windows 7 from External Drive Hangs

    Hi All, I recently removed my Macbook Pro's internal optical drive and replaced it with a 128GB SSD. I am running OSX 10.8.3 off of the SSD but can not get bootcamp to install Windows 7. I walk through the first steps with bootcamp assistant and part

  • Maximum length of a prompt which can be recorded in UCCX ver 8.5?

    I have a customer who would like to be able to record company announcements via a script in UCCX and have it saved as a prompt.  Is there a time limit on the length of a prompt which can be recorded?  

  • More than100 Items on a Page

    When there are more than 100 Items on a page a message appears below the list of items "Item count of X exceeds maximum of 100". What happens when you exceed the maximum number of items?

  • Help importing from Camera

    We just got a mac and got rid of our PC and I have NO idea how to make this work :o) I have a Kodak CX4200, which is on the list of compatible cameras. When I plug it in, and turn it on iPhoto will sometimes pop up like it says it will. The rainbow s

  • Context Menu in WAD - disable the data entry active entries

    Hi, I have the following problem. We created an input ready query and brought this query via WAD into the portal. Inside the Web Template we have a SAVE Button and a Button activation the Data Entry possibility. Now when executing the Web Template, t