Working with MySQL driver

I'm trying to use MySql Driver instead of ODBC in an application developed with JBuider.
When the instruction:
Class.forName("com.mysql.jdbc.Driver");
is processed I receive the message:
Class Driver ERROR java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Where should I put mysql-connector-java-3.0.8-stable-bin.jar?????
Please help me
Thanks to everyone

I think that JBuilder doesn't use system classpath but build it by his run configuration.
What I don't understand is how to include my .jar in it.
bye

Similar Messages

  • How working with mysql databse in javaFx?

    Please, I need work with mysql database. How make connection, and using statments etc.?

    Just like you were going to connect from a servlet or swing app.You can use the still same way.I provided a simple sample for that
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.lang.ClassNotFoundException;
    import java.sql.DriverManager;
    import javafx.ext.swing.SwingList;
    import javafx.ext.swing.SwingListItem;
    import java.lang.Class;
    var items:SwingListItem[];
    var list:SwingList = SwingList{
    items: bind items;
    //Connection
    var con:Connection;
    //Statement
    var statement:Statement;
    //ResultSet
    var rs:ResultSet;
    try{
    Class.forName("com.mysql.jdbc.Driver");
    con=DriverManager.getConnection("jdbc:mysql://localhost/<database goes here>","<username goes here>", "<password goes here>");
    statement = con.createStatement();
    rs = statement.executeQuery("select * from <table goes here>");
    while(rs.next()){
    rs.getString(1);
    var item:SwingListItem = SwingListItem{
    text:"{rs.getString(2)},{rs.getString(3)}";
    //insert the swinglistitem into the SwingList
    insert item into items;
    rs.close();
    } catch(e:java.lang.Exception) {
    FX.println(e.getMessage());
    } finally {
    try {
    if(con != null)
    con.close();
    } catch(e:SQLException) {
    FX.println(e.getMessage());
    Stage {
    title: "Database Sample"
    width: 250
    height: 250
    scene: Scene {
    content: list
    }

  • Clob mapping not working with mysql

    Hi,
    I have an application that i'm running with MySQL and Oracle at the same
    time. At some point, i need to use a 'clob' mapping. When i do this, it
    just works fine with oracle but it fails with mysql. i have the exception:
    Field "com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description"
    is mapped as a clob, but should be represented as a different mapping.
    If the field is a string and you would like to force it to map as a
    clob, add an extension to its field metadata with a key of "jdbc-size"
    and a value of
    -1.[com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description]
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:132)
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:118)
         at
    kodo.jdbc.meta.ClobFieldMapping.fromMappingInfo(ClobFieldMapping.java:46)
    if i use a value mapping, it works with MySQL but fails with Oracle (I
    have sql error because a clob is used in a distinct select).
    In the manual, it is written "Note that some databases can support
    string of unlimited length without using a CLOB; when this is the case
    the mapping tool will install a value mapping in favor of
    this mapping.". So apparently, this is not the case with MySQLDictionary.
    To solve my problem and have my code working with both databases, i had
    to extend the MySQLDictionary and overwrite the replaceFieldMapping
    method in order to replace the clob mapping by a value mapping at
    runtime but i don't feel confident to do this kind of modifications by
    mysel and would expect this behaviour to be solved quite soon.
    Thanks for your help since this problem is urgent for us,
    Laurent Czinczenheim

    Laurent-
    The best solution would probably be to just have separate mappings for
    the MySQL and Oracle databases. The easiest way to accomplish this would
    be to have a separate setting for each of the databases. E.g.:
    kodo.jdbc.meta.MappingFactory: file(SingleFile=true, FileName=oracle.mapping)
    kodo.jdbc.meta.MappingFactory: file(SingleFile=true, FileName=mysql.mapping)
    That way, you can use a clob mapping for Oracle, and a normal value
    mapping for MySQL (since MySQL doesn't need to use the CLOB mapping, and
    it isn't very efficient).
    For more details on this, see:
    http://docs.solarmetric.com/manual.html#ref_guide_mapping_factory
    Another solution is to just stick with your custom extension of the
    MySQLDictionary, which is a perfectly valid way of having special CLOB
    handling in MySQL. Note, though, that CLOB handling is less efficient
    than VARCHAR handling, so it should be a mapping of last resort, and
    there isn't any need to use it in MySQL.
    In article <[email protected]>, czinczenheim wrote:
    Hi,
    I have an application that i'm running with MySQL and Oracle at the same
    time. At some point, i need to use a 'clob' mapping. When i do this, it
    just works fine with oracle but it fails with mysql. i have the exception:
    Field "com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description"
    is mapped as a clob, but should be represented as a different mapping.
    If the field is a string and you would like to force it to map as a
    clob, add an extension to its field metadata with a key of "jdbc-size"
    and a value of
    -1.[com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description]
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:132)
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:118)
         at
    kodo.jdbc.meta.ClobFieldMapping.fromMappingInfo(ClobFieldMapping.java:46)
    if i use a value mapping, it works with MySQL but fails with Oracle (I
    have sql error because a clob is used in a distinct select).
    In the manual, it is written "Note that some databases can support
    string of unlimited length without using a CLOB; when this is the case
    the mapping tool will install a value mapping in favor of
    this mapping.". So apparently, this is not the case with MySQLDictionary.
    To solve my problem and have my code working with both databases, i had
    to extend the MySQLDictionary and overwrite the replaceFieldMapping
    method in order to replace the clob mapping by a value mapping at
    runtime but i don't feel confident to do this kind of modifications by
    mysel and would expect this behaviour to be solved quite soon.
    Thanks for your help since this problem is urgent for us,
    Laurent Czinczenheim
    Marc Prud'hommeaux
    SolarMetric Inc.

  • Working with MySQL Remotely

    Does anyone on this list work with MySQL using a remote
    database, rather
    than a local database? If so, what are the
    advantages/disadvantages? I
    can't establish a database connection locally, so I'm
    thinking of
    working with MySQL remotely instead.
    I think I've figured out how to write a connection to my
    online database...
    $link = mysql_connect ("67.61.172.163" , "USERNAME" ,
    "PASSWORD") or
    die(mysql_error());
    mysql_select_db ("DATABASE", $link) or die(mysql_error());
    ...where 67.61.172.163 represents my IP address (though it's
    really
    something different :) ).
    But I get this error message:
    Warning: mysql_connect() [function.mysql-connect]: Host
    '[blah, blah,
    blah].wa.WHATEVER.net' is not allowed to connect to this
    MySQL server in
    /Users/MyName/Sites/Geobop/a1/dbc.php on line 10
    Host '[blah, blah, blah].wa.WHATEVER.net' is not allowed to
    connect to
    this MySQL server
    Is there a way to fix this, so I can connect remotely?
    www.geobop.org - Family Websites
    www.invisible-republic.org - Adult political websites (Mature
    adults only)

    >
    > Is there a way to fix this, so I can connect remotely?
    "Host '[blah, blah, blah].wa.WHATEVER.net' is not allowed to
    connect to
    this MySQL server"
    that error message lays it out fairly plainly.
    Knock Knock. Reply from server: What's your name and business
    and where are
    you coming from. Blah Blah from Blah. Reply: not taking door
    knocks from
    blah. Have a nice day.
    Most LAMP Linux/Apache/MySQL/PHP hosting only allows
    localhost connections
    to MySQL. It's pointless to try what you want to do if that's
    what the
    hosting is. Your only option is to conform or to rent a box
    and config it to
    what you think it should work like.
    If you want to directly connect to the remote db using some
    app on your
    local machine, or from what it looks like, your local server
    using the
    remote db, find one that allows it. The few that will will
    show the sign
    666.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • TM works with network drives?

    Just to be sure - TM works with directly attached drives. But does it also work with network drives? I hope it does at least with Apples newest update.
    Thanks
    Andreas

    There is plenty of documentation/discussion of a workaround that let's you make your computer recognize unsupported drives. Search for it using words like terminal network unsupported drive backup and you will find it. Some people say it works fine, and others caution against using it. I haven't seen a thorough discussion that really explains why Apple doesn't allow it, or why it's risky, or why it works, but that's typical of the boards that attract a techie crowd. Me? After spending $650 for a Terastation, I'm going to give it a try. Apple wants so badly for Windows users to switch to Mac, but they sometimes seem to make it very difficult and frustrating for us.

  • G505s - Touchpad hot key function not working with lenovo driver

    I'm using windows 8.1, Lenovo G505s laptop. Recently I got replacement from Lenovo regarding touchpad after that this Fn(F7) touchpad enable/disable not working. This is happening only when I installied touchpad driver provided by lenovo and works well with standard microsoft driver (Ofcourse, no multigesture support with that driver).
    We perfomed following operations:
    1. HotKey mode enable/disable in BIOS
    2.Reinstallation of OS
    3. Reinstallation of driver(manually)
    All cases with microsoft driver this function working but with touchpad driver it is not working. It's almost 90days (88thday) daily contacting both Lenovo customer support and service center people but no use.
    If anybody having this problem and have a solution please share! (My machine under warranty!)

    hi phani_kumar,
    It's likely that you have a Synaptics driver (you can verify this by its hardware ID or use a utility software like AIDA 64 Extreme Edition).
    - Link to picture (Synaptics)
    - Link to picture (ELAN
    If you're unable to install the driver below, can you follow this guide on how to disable driver signature enforcement then try to reinstall the driver again and observe if you can now toggle the Fn+F6.
    Windows 8/7/XP/Vista 64/32-bit Edition v17.0.19
    All Languages
    118.1 MB zip
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • JSP Not Working with Thin Driver

    My JSP is not working with Oracle thin driver but it is working with Oracle OCI driver.
    From my jsp i am calling a stored procedured and passing 170 parameters to the procedure. This JSP works with Oracle OCI Driver configured as thrid party drivers in iAS6.0 SP2, but not working with Oracle Thin Driver configured as third party drivers in iAS6.0. My thin driver JDBC Connection URL is as follows:
    jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = MAPDBI01)(PORT = 1521)))(CONNECT_DATA =(SID = MAPS))).
    I have to give this URL because my production server deployment consists of iWS4.1 SP5 and iAS6.0 SP2 in different solaris boxes and Oracle 8.1.7 Database server in another Solaris Box. There is a pool of proxy servers between iAS6.0 box and the oracle box.

    Wim,
    I'd really appreciate it if you could provide some sample code. A complete, small, simple java class that I could copy and try out would be wonderful -- if it's not too much trouble.
    Thanks heaps (in advance :-),
    Avi.

  • Line-in not working with new driv

    Has anyone else had issues with the line-in jack not working with new drivers? Is there a way to get it to work??Very frustrated. Is there a link to the beta drivers, they worked better for me then the new one.

    The line input on the mini requires a 'line-level' signal, so the only microphones that work are ones that have an amplified output. Standard mics don't generate enough voltage to drive the mini's amplifiers.
    That's the reason the mics work with the Griffin device (it has an amplifier) but not the mini directly.

  • LR5.2 Destroys raw-files if working with network drives

    I have a serious bug with LR5.2: It destroys my raw files CR2 (Canon ESO 60d) if I work with my local network drive. All my pictures are stored on this network drive. If I try to import from sd card or local drive new pictures and copy/move them via import or synchornize to my network drive the files are corrupted. I also can't open them with other sw-programms like DPP from Canon. The original files on the sd card are okay. Even if I copy the files via explorer to the network drive I can open them with for ex. DPP, but after I imported them into LR5.2 the files are corrupted and I can't open them with DPP again.

    LeeScoresby wrote:
    I have a serious bug with LR5.2: It destroys my raw files CR2.
    Lr doesn't write CR2 files, except if moving/copying, and then only via call to operating system. If your raw files are going bad, you probably have a system/hardware problem.

  • Spdif out not working with latest drives on XFI

    /? I installed the newest drivers that were released recently. Driver version 6.0..347.
    Before I upgraded to these drivers my dolby digital was working fine.
    In powerdvd I have SPDIF/out selected. And the dolby digital light will not come on in the reciever. Anyone?
    else having this issue?
    SYSTEM SPECS: Antec P83 * Antec CP-850 * Intake two S-Flex SFF2E fans *
    Exhaust? two S-Flex SFF2E fan * Noctua NH-U2P SE366 cpu cooler * Asus P6T Deluxe *
    Bios version 605 * Core i7 920 @ 3.6ghz 20x 80bus * Mushkin 3x2GB 998679 @ 7-8-7-20 *
    Gigabyte 9800 GTX+ gig * PCIe SB X-Fi Titanium Fatality Pro * Pioneer SATA DVR-22DBK *
    Intel X25-M 60GB MLC SSD * Two Western Digital WD6400AAKS 640GB *
    ?Windows Vista 64 Ultimate SP2 not vlited
    Message Edited by galvin on 08-6-2009 05:08 [email protected]

    No one has this problem at all?
    I want to find out for sure if there is a fix before going back to the older drivers.
    If i do the test in the spdif out properties panel -> supported formats. When I do the dolby digital test I see the light come on in my receiver and hear sound just thru the front speakers. But when I use power DVD 9 ultra with the latest patch. I don't get the digital light on my receiver. I had this working with the previous drivers released earlier this year.
    Message Edited by galvin on 08-7-2009 0:54 [email protected]

  • Does Boot Camp work with Fusion Drive

    After having Boot Camp fail this morning while partitioning the drive, and now having to erase and restore my entire hard drive, 500GB worth of crap, I am wondering -- does Boot Camp work with the fusion drive?  My new iMac has one of these things, and I am wondering if that is maybe the reason it did not work.
    Thanks
    Bob

    mende1 wrote:
    A virtual machine is less risky because it doesn't modify your hard disk. However, it gives you less performance because it doesn't use all the hardware of your computer.
    While that is true the actual performance available depends on how much resources you have, and how much is made available to Windows. (Win 7 in BC on my iMac gets a 5.9, in a VM it gets a 4.8) all the reduction is in the graphics performance. Disk performance in the VM is faster. I have 16GB or Ram, the VM gets 8 of that when it is running.
    If games are to played a VM is useless.

  • HD Led not working with SATA drives on MSI K7N2 Delta

    I noticed the HD led does not work with the SATA drives on my MSI K7N2 Delta ISLR
    I confirmed that the led is not burnt out by reconnecting a spare IDE HD with XP on it to IDE 1 and the led worked when there was activity, but it does not work when connected to IDE3 or if the SATA drives are connected to Serial 1 & 2.
    Could it be because the motherboard doesn't support and hdd led for the Promise SATA controller.
    I had Bios v7.3 and flashed to v7.4 with no luck.
    Could a new bios update fix this problem?
    Anybody seen this before?

    basically it not wired up so works for no one

  • Does Time Machine work with eSATA drives?

    Or does it only work with USB, FW, and Time Capsule?
    TIA

    yes, it works with eSATA. I've seen posts by people who do it.
    Message was edited by: V.K.

  • Trouble Getting Dreamweaver 8 to work with MySQL: The "Unidentified Error"

    I set up MySQL on my Macintosh yesterday, along with PHP --
    all went fine yesterday, until I tried to connect Dreamweaver to it
    (today I went back and uninstalled and tried to reinstall, and all goes less well -- can anyone tell me what
    robert:/usr/local/mysql robert$ bin/mysqladmin -u root password 'himmel'
    bin/mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user 'root'@'localhost' (using password: NO)'
    signifies?)
    In any case -- back to the story:
    I go to connect to the DB in Dreamweaver 8, and when I try to set up the DB in the "databases" tab and click on the "database" field I get
    "An unidentified error has occurred"
    and then
    "HTTP Error Code 404 File Not Found....
    [Possible Reasons]: 1) No testing server running on this machine.
    2) The Testing Server specified for this site does not map to the http://127.0.0.1/~robert/Sites/_mmServerScripts/MMHTTPDB.php?Type=MySQL&Connecti onString=host=localhost;uid=dwmx;pwd=mm&Host=localhost&&UserName=dmwx&Password=m m&Timeout=30 URL. Verifiy that the URL prefixs points to the root of the site."
    Any clue? I know little about PHP or Unix, but am trying to learn.
    iMac 17   Mac OS X (10.3.9)  

    There's a 64-bit version of Power Query which you should be able to get from the same site you downloaded the 32-bit version.
    It sounds like you used "From SQL Server" to try to connect from Excel to MySQL. This will not work. You would likely need to acquire and install a MySQL ODBC driver and then use "From Microsoft Query". Similarly, to use MySQL from inside
    Power Query, you will need to acquire and install a MySQL ADO.NET driver.

  • Scanning Documents From File Center from HP Officejet Pro 6830 Not Working with Twain Driver

    I just purchased a HP Officejet Pro 6830 All-In-One printer and planned to use it to scan from Filecenter (Lucion Technologies) using TWAIN driver. The Twain driver for the HP shows up in Filecenter, but the scan produces a blank document. My previous All-In-One printer from Dell (Lexmark) scanned to this software with no issues. Are there any solutions to this issue?  Filecenter has different scan modes A and B and Transfer type (Native, Memory and File) and I tried all 6 options and none worked.

    Hi @cyclebob ,
    I have brought your issue to the attention of an appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publically post ( serial numbers and case details).
    If you are unfamiliar with how the Forum's private message capability works, you can learn about that here.
    Regards,
    George
    I work for HP

Maybe you are looking for

  • My iTunes will not open after a re-install

    I went to the apple store b/c my computer was running my computer has been running slow. They told me to try to do a re-install after saving things on an external hard drive. I followed their advice and now iTunes now will not work. I tried to downlo

  • Multiple Target files as the item in source file

    Hi all , I am new XI ,my scenario is File to File and my data type structures for source and target are as follows  _Data type for source:     _                Source       Header     1:unbound                                org       1:unbound      

  • Can i set pf-status in print preview of form

    I want to download a smartform in pdf after viewing the print preview . For that i want to give a button / menu  in the form print preview page. can i set pf-status for that ?

  • Please Help Nested Editable Region Image & Spry

    Please Help Me. New to Dreamweaver. I've been given a "grandchild" nested temple with only one editable region to alter. I've read and Googled since Saturday. My brain actually hurts. Goal - Insert my background image into region - Add Spry accordion

  • Ovi map gadget zoom

    Anybody knows how to zoom out in map gadget? Mine is always on max zoom, which makes it totally useless, as I can't see towns names.