Mysql - help needed (please)

I'm trying to connect to mysql using jconnector on a W2k box. Here are my settings:
Path
C:\Sun\AppServer\jdk\bin;C:\Sun\AppServer\jdk\jre\lib\ext\mysql-connector-java-3.0.14-production-bin.jar
If create a CLASSPATH aswell then I cannot use javac. If I use CLASSPATH with the settings above mentioned the following still applies:
Here is the test prog:
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class JdbcExample2 {
public static void main(String args[]) {
Connection con = null;
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql:///test",
"NAME", "PASSWORD");
if(!con.isClosed())
System.out.println("Successfully connected to " +
"MySQL server using TCP/IP...");
} catch(Exception e) {
System.err.println("Exception: " + e.getMessage());
} finally {
try {
if(con != null)
con.close();
} catch(SQLException e) {}
Here's my result:
C:\Sun\Java_Progs\src>java JdbcExample2
Exception: com.mysql.jdbc.Driver
Any ideas?

I've just done this:
CLASSPATH:
C:\Sun\AppServer\jdk\bin;C:\Sun\AppServer\jdk\jre\lib\ext\mysql-connector-java-3.0.14-production-bin.jar
But still no luck. I get this:
C:\Sun\Java_Progs\src>java JdbcExample2
Exception in thread "main" java.lang.NoClassDefFoundError: JdbcExample2
Any ideas?

Similar Messages

  • Help needed please.. how do I remove my credit card from itunes? just discovered over $450 of charges when I looked at my email... Kids had no clue they were using our money and not their gift cards

    Help needed please.... I just discovered over $450 charges to my credit card from Itunes. The kids had no idea they were using our credit card and not their itunes gift cards and 4 year old just clicks on anything! I didnt save my credit card details so am a bit miffed at this... I cant find anywhere in itunes to remove it. Edit.. but not remove. Editing does not remove it.. HELP

    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact
    Accepted forms of payment  >  http://support.apple.com/kb/HT5552
    Changing Account Information  >  http://support.apple.com/kb/HT1918

  • Help needed please, with Iphone stuck with apple picture and progress bar after software update attempted

    Help needed please, everytime I try to update the software version on my iphone it comes up with a message saying it could not be completed and is now frozen with the apple picture and progress bar on it. Do I unplug it and hope the macbook pro sees it again, I also stupidly did not back up before starting the download which I realise I will have to go back to the previous back up. This keeps happening, everytime I do this type of update, I'm starting to think I should just give up on updating my software on the Iphone. I thought it was happening because I was using a window based computer to do the updates, this time I used my Macbook Pro. Please somebody help

    ljm17 wrote:
    ...This keeps happening, everytime I do this type of update, I...
    Then you should know what you need to do... If you don't remember...
    See Here  >  http://support.apple.com/kb/HT1808

  • I recently had to restore my Iphone 4s and ever since I cannot double click the home button whilst the phone is locked and change my music. The controls come up and I can adjust the volume but I cannot change the songs. Help needed please!!

    I recently had to restore my Iphone 4s and ever since I cannot double click the home button whilst the phone is locked and change my music. The controls come up and I can adjust the volume but I cannot change the songs. Help needed please!!

    Have you guys been able to activate your iphone yet? I bought an iphone 4s from eBay and it worked fine, but the previous user had left some data on it, so last night I used the "erased all content and settings" to restore it to factory setting so I can start fresh and restore my backup. But now I'm stuck at the activation screen (I get the same "the activation server is temporarily unavailable")  and can't get it to activate, even if I use my old deactivated AT&T sim card (I'm on straighttalk now).
    I might try activating it with an active AT&T sim card from my fiancee's phone when she gets home, so I'll let you know how that works outs.
    If it's true that the server is down; anyone know when it will be back up again? Thanks in advance.
    iPhone 4s iOS 5.1.1 (9B206)
    Carrier AT&T 12.0
    Modem Firmware 2.0.12

  • New Hard drive, can't access certain aspects. Help needed please

    Hi everyone.
    I have an HP Pavilion dv6-6052ea laptop.
    I've been having problems with the hard drive so got a new one installed.
    My main issues are since getting it back, I can't access any of the original HP installations etc (I've downloaded all the drivers I know about through HP).
    The 2 main things I'm missing are 2 things that came with the laptop.
    1: Beats Audio sound system 
    2: Video Graphics: AMD Radeon HD 6490M (1 GB DDR5)
    and I have no idea how to get them back. Can anyone help. Do I need to install specific drivers? I can't find any trace that they exist on my laptop now apart from the stickers on the laptop! Any help is greatly appreciated. 
    I never had any CD back ups for the laptop. I do have the old HP back up etc saved on a USB but I don't know enough about the folders and files to know what I need to look for. (I still have the old hardrive.)
    Again, any help is massively appreciated. Thank you!
    Tony 

    If you used your HP Recovery Media, all factory install drivers and software would have been installed. If you didn't create your HP Recovery Media when you first setup your computer, please contact official HP support in your region / country, via the HP Worldwide Support Portal, to see if HP Recovery Media is available for your computer.
    If a generic Windows 7 installation disc was used, you will need to install all HP specific driver for your computer. Please try IDT High-Definition (HD) Audio Driver, Intel High-Definition (HD) Graphics Driver, and AMD High-Definition Graphics Driver to resolve your missing drivers issues. Windows 7 64-bit driver for your computer can be found on the HP Pavilion dv6-6052ea Entertainment Notebook PC Drivers page.
    If you have any further questions, please don't hesitate to ask.
    Please click the White KUDOS "Thumbs Up" to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • HELP NEEDED PLEASE

    Hi everyone
    Programming help needed here. Any advice would be greatly appreciated!!!
    I have been assigned some work for a program called Processing 1.0 availale at http://processing.org/download
    I was give the 9 individual programs I needed to make however they were converted to Java files from .pde files. The program is based on Java but only runs .pde files and NOTHING else!
    I decompiled the files and got the source code, but it is a slight variation of the original someone made in processing, and needs some tidying to get it to run.
    I think the programs are very simple for a programmer, although I AM NOT.
    CODE is BELOW
    // Decompiled by DJ v3.10.10.93 Copyright 2007 Atanas Neshkov Date: 02/05/2009 13:15:00
    // Home Page: http://members.fortunecity.com/neshkov/dj.html http://www.neshkov.com/dj.html - Check often for new version!
    // Decompiler options: packimports(3)
    // Source File Name: Assign2_1.java
    import processing.core.PApplet;
    public class Assign2_1 extends PApplet
    public Assign2_1()
    SquareSide = 20;
    Rank = Nums.length;
    Side = SquareSide * Rank;
    Green = color(0, 255, 0);
    Yellow = color(255, 255, 0);
    BG = Yellow;
    public void setup()
    size(Side, Side);
    background(BG);
    fill(Green);
    for(int i = 0; i < Rank; i++)
    rect(i * SquareSide, 0.0F, SquareSide, SquareSide * Nums);
    public static void main(String args[])
    PApplet.main(new String[] {
    "--bgcolor=#ece9d8", "Assign2_1"
    int Nums[] = {
    6, 14, 8, 9, 2, 3, 4, 2, 8, 3,
    9, 2, 0, 5
    int SquareSide;
    int Rank;
    int Side;
    int Green;
    int Yellow;
    int BG;
    Edited by: chevy1 on May 2, 2009 7:32 AM

    HELP NEEDED PLEASEShouting is a good way ensure you don't get help. Also you should give a meaningful subject.
    Any advice would be greatly appreciated!!!I suggest you ask a question after providing enough information to be able to answer it.
    Also use CODE tags when posting code as it make the code more readable.
    We are more likely to help people who are trying to learn Java rather than someone who might be looking for an easy way out of doing an assignment.

  • ITunes corrupt file message - urgent help needed please

    I have an iPod video 30GB, i downloded the latest iTunes & Quicktime version, and updated my iPod also to the latest update. When i connect my iPod and start downloading music from the library in iTunes, the iPod keeps on disconnecting and restarting by itself, and i get a message that the file iTunes.exe is corrupt. I tried Apple support and did all what they said by downloading the latest updates and versions, and also did the Chkdsk utility on Windows, but still it did not work, the iPod keep on restarting and i cannot download anything on it, i had it now for a week and did not use it at all because of this problem, can somebody with a technical background help me please, i use Windows XP.

    I have an iPod video 30GB, i downloded the latest iTunes & Quicktime version, and updated my iPod also to the latest update. When i connect my iPod and start downloading music from the library in iTunes, the iPod keeps on disconnecting and restarting by itself, and i get a message that the file iTunes.exe is corrupt. I tried Apple support and did all what they said by downloading the latest updates and versions, and also did the Chkdsk utility on Windows, but still it did not work, the iPod keep on restarting and i cannot download anything on it, i had it now for a week and did not use it at all because of this problem, can somebody with a technical background help me please, i use Windows XP.

  • MP3 burning help needed please

    Hi,
    I'm hoping someone can help me please.
    I'm wanting to burn a mp3 cd but with the songs in separate folders so that when i play them in my car i can flick between the albums instead of having to go through all the singles one after another.
    Does anyone know of a good mp3 burner that can do this, and where to get it from too.
    All and any help in this matter is greatly appreciated
    Cheers
    Paul

    You want them in separate Album folders?
    Put the songs into the playlist.
    Sort the playlist by Album then burn it as MP3* disc.
    This will put the songs into Album folders.
    Likewise, if you sort by Artist, songs will be put into Artist/Album/ folders.
    * Note that only MP3 files will be burned to the disc. If the files are not already MP3 format, they will be skipped.
    If you burn it as a DataCD, it wil work the same except it will copy the files regardless of format. I do this as my CD player will work with both AAC & MP3 formats.

  • WLC Logs!!! Quick Help needed please!

    Hello,
       My client want to check who owned a certain IP address on the WLC and from which AP he was associated. I looked at the system logs in the GUI but couldn't get beyond 6 hours. Is there a place I can download last day logs from CLI/GUI? Or Can I login via SSH and extract the logs via CLI?
    Please this is vital and I appreciate your help,
    Regards,

    Please note that the customer is using Pass-Through Web Authentication for the Guest WLAN.
    Thanks,

  • Help needed please, Local - Remote mySQL transition

    Hi all,
    Ok here is my problem.
    I have wamp installed on my local system and have created a database in mySQL. I use this connection in my Dreamweaver cs3 site.
    I have just requested a mysql database from my hosting company and they have given me a sql address e.g sql34.hostdomain.net, a username and password.
    My problem is I know how to connect to this through dreamweaver, but how do I transfer my local database to my remote mysql server?

    learner2site wrote:
    My problem is I know how to connect to this through dreamweaver, but how do I transfer my local database to my remote mysql server?
    You export it and then import it on the server. It's all in the phpMyAdmin start page... If you have no direct access to the admin UI, check for a respective PHP script that contains the necessary SQL queries.
    Mylenium

  • Urgent help needed, please help me

    Hi,
    I am developing a web site using Java Servlets. The site requires to send XML as POST to an HTTPS server and get the response.
    Development environment:
    Laptop running Windows XP with jdk1.3.1, j2sdkee1.3 and Tomcat 4.1.
    Since I need to use https request from the servlet, I am using the following code;
    URL url = new URL("https://www.somesite.com");
    HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
    To use the above code I downloaded the jsse1.0.3_03 package from the sun website and added the three jar files to the appropriate location. Also edited the java.security file.
    The program compiles and when deployed to the web server, it works great.
    Now the problem;
    I need to deploy the web site in a server that is connected to the internet. This server is running Windows 2000 Server. It has the same jdk1.3.1, j2sdkee1.3 and Tomcat 4.1. Also I added the three jar files from jsse1.0.3_03. I also updated the classpath in the environment variable accordingly.
    Everything is pretty much similar to the Laptop that I use to develop the site except that the OS is Windows 2000 Server.
    But when I deployed the class files to the web server and tested the site, the servlet gave the following error:
    "unknown protocol: https"
    What could be wrong? I really need to fix this issue as soon as possible and any input from you will be highly appreciated.
    Thanks in advance,
    Rajesh

    Hi,
    I used java class as beans and added to JSP page as follows (the code is not complete, I am just giving the parts that are relevant);
    login.java: Implementation of login to access the database      
    *through JDBC. Uses MySQL.                              
    Last Modified: 03.22.03                    
    package user;
    import java.sql.*;
    import java.util.*;
    public class login
         private static Statement statement;
         private static Connection database;
         private static String jdbcDriver = "org.gjt.mm.mysql.Driver";
         private static String source = "jdbc:mysql://127.0.0.1/user";
         private static String username = "user";
         private static String password = "passwordforuser";
         Constructor for initializing the connection to the database                              
         public login()
              try
                   Class.forName(jdbcDriver);
                   database = DriverManager.getConnection(source, username, password);
                   statement = database.createStatement();
              catch (Exception e)
                   System.out.println("Error (From loginDatabase Constructor): " + e.getMessage());
         Used to check the users      
         public String checkUser(String userName, String passwd) throws Exception
              try
                   ResultSet names = statement.executeQuery("SELECT username, passwd FROM users");
                   while (names.next())
                   return "success";
                   return "wronguser";
              catch (Exception e)
                   throw e;
    <!--*********************************************************************************
    login.jsp: Server page to process the login request. Uses login.class to     
    *add / login users.                                        
    Last Modified: 03.23.03                         
    **********************************************************************************-->
    <%@ page import="user.login" %>
    <jsp:useBean id="login" scope="page" class="user.login" />
    <jsp:setProperty name="login" property="*" />
    <html>
    <head>
    <title>Login</title>
    </head>
    <body bgcolor="#3366FF" link="#000000" vlink="#000000" alink="#000000">
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <% //Login the user and display the status
    String loginResult = login.checkUser(request.getParameter("username"), request.getParameter("password"));
    if (loginResult.equalsIgnoreCase("success"))
    %>
              <h1 align="center">You are successfully logged to the Server!</h1>
    <%
    %>
    </tr>
    </table>
    </body>
    </html>
    Hope that helps...
    Good luck!
    Rajesh

  • Restore help needed please.

    I need help. I got a new iPhone today and I went to iTunes, pressed restore, because I didn't know what else to do.
    And now because it was logged in under my boyfriends apple ID my iPhone is my boyfriends iPhone too.
    How do I turn it back to mine!? I need urgent help please!

    Go to Settings > General > Reset > Erase All Contents and Settings. Now this time, select Set Up as New iPhone rather than Restore from Backup.

  • Error in database reading ! help needed please.

    My project involves monitoring of ovens.
    The temperature from the oven are obtained using advantech ADAM module.
    Each material enters the oven and an alert is given to take it out after the desired time inside the oven.
    When i execute this program. an error pops up exactly 1 our after the start of the program.
    Kindly help me.
    I have attached the source code including the DB files and the error screen shot.
    username: 123456
    pass: 123456
    Thank you ina advance.
    Please help figure out the error.
    Regards
    Grugh Mike
    Success is Everything !!
    Solved!
    Go to Solution.
    Attachments:
    New Microsoft Word Document (2).doc ‏151 KB
    source.zip ‏4529 KB

    The biggest problem in your code is architectural. You need to learn about a few things like event-driven programming. As but one example you have an administrative operations VI that would be much smaller and much more efficient if it were built around an event structure and not multiple case statements. Your main application uses sequence structures - which are never necessary. As I recall, the last sequence structure I used in deliverable code was in the spring of '88.
    You also are not handling any of errors - which I suspect might be the source of your problem. It's possible that due to an error (which is going unreported) that a connection is being left open when you think it is being closed. But at this point that is just a guess.
    Fix the structural problems and you'll then be able to troubleshoot your DB problem. Shoot, in the process of fixing the structural issues, you may fix the DB!
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • IReader installed but wont open Urgent help needed please!

    I have installed Acrobat Reader X.
    When i try to open files I get a problem saying Microsoft and Adobe have encountered a problem and need to close.
    I get an option to Debug, Send error report or Dont send.
    The information which comes up when I look for more information is the following::
    error signature
    Appname. Acrord32.exe. Appver 10.0.1.434 Modname acrord32.dll
    Modver 10.0.1.434  offset 001869666
    It was previously working then the next time I came to use it I got this.
    Desparately need help

    1. camera loading - have you tried updating or reinstalling your firmware?
    2. keyboard - define strange
    3. slow - how much is phone memory and what apps are running in background (see taskmanager, hold menu key until it shows)? turn off theme animations. it helps.
    4.  handwriting - have you set the handwriting recognition to recognize your particular penmanship? Go to menu>settings>phone>touch input. Set writing speed to very fast, calibrate your screen and take handwriting training so the phone will recognize your handwriting.
    5. qwerty - what things? how so? have you set it to qwerty?
    6. cannot scroll in file manager - its not a problem. Thats normal for the OS. Use Nokia Photobrowser or the Gallery for viewing pictures. File manager is for managing files, not viewing them.
    7.  Motion sensors - read #3
    8. Phone feels hot - how hot? Batteries heat up when charged. Its normal. However it depends on how hot exactly.
    9. Depends maybe on how long the video is. My 5800 feels hot when watching an entire movie. Also this would be reflected on #3 as well, as the phone may be working overtime.
    10.  Music when unplug headset - Its normal for almost all Nokia phones (heck even some other brands this is normal), try to use an alternative player if you like
    11. Back cover -  Its the design
    12. Yotube - use youtube app
    13. Use Nokia Photo Browser download from ovi store. It shows pics only and looks real cool. Anyway, you can put all your videos in the gallery into a virtual folder so that it is separate. Its the way the gallery is designed, to show both pics and video. As you can see, it is written Images and Videos, so they're supposed to be together in there.
    14. Adobe still hasnt caughtup its mobile solutions for its PC solutions. Its their fault not Nokia's or anyone else's.
    15. Depends on extension. Built in office reader only reads .doc, not .docx.
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • ? symbol in Keynote - Help Needed please !!!!

    Hi,
    New to Mac and even newer to keynote.....
    when i open a new slide there are ? symbols on the slide which appear also when i play the slides....
    is this an error or not ?
    If its an error what does it mean and if not how do i remove them ?????
    Please help as my daughters homework needs doing (by her obviously, not me)
    Thanks
    Nick

    Here are a few things you can do to troubleshoot the problem:
    - Have you tried re-recording the entire song playlist? This would be the first thing to try.
    - If it still skips, does it play OK in the Editing mode (not in Presentation mode)? If so, there may be a problem with the way you Recorded the Soundtrack.
    - Try recording just "Beautiful Day" as a Soundtrack and see if it still skips. If so, then this track itself may have some "glitches" and need to be replaced with a new copy.
    - What is the processor speed of your playback computer? With some presentations the audio will skip on slower machines, but not faster ones. (e.g. Some audio tracks will skip on my G5 desktop but not on my MacBook Pro.)
    Good luck

Maybe you are looking for