Getting the runtime environment to see packages in the jre/lib/ext dir

I've downloaded mysql-connector-java-3.0.6-stable-bin.jar so that i can connect to a mysql database. I can use it fine from tomcat, but when I try and write stand alone stuff I get
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at WebUtils.DatabaseConnection.Query(DatabaseConnection.java:27)
at AddToDatabase.main(AddToDatabase.java:13)
I suspect it could be a classpath related error but I have no idea how to fix it, or even how to set the classpath or view it's current value.
Any ideas,
Pete

I've downloaded
mysql-connector-java-3.0.6-stable-bin.jar ...Can we assume you've put it on the JDK/jre/lib/ext dir ?
I suspect it could be a classpath related error but I
have no idea how to fix it, or even how to set the
classpath or view it's current value.Which OS are you using ?
Rafael

Similar Messages

  • HT4199 My macbook pro and ipad does not recognize my printer on my wireless network, but my pc does. How can I get my apple products to see it on the network so I can print wirelessly?     My printer is a Brother MFC-J270W

    My macbook pro and ipad does not recognize my printer on my wireless network, but my pc does. How can I get my apple products to see it on the network so I can print wirelessly?     My printer is a Brother MFC-J270W

    try disabling email scanning for incoming mail.
    One of the last things that occurs is the mail server and Thunderbird sign off on "where we are up to" and Thunderbird stores this state information in the popstate.dat file in your profile (there is one in each POP mail account folder). If the anti virus, or you for that matter, end the conversation a few seconds early that hand off does not occur and the popstate is not stored.

  • I get a runtime error when attempting to search the store in Itunes.  I unistalled and reloaded. How can I fix this?

    I just began getting a runtime error when attempting to search the iTunes store.
    I uninstalled and reinstalled but, it's still happening.
    How can I fix this so I can start to buy music again?

    I have the same error, but I think we will get no solution for this problem.
    You've get no answer here and the Apple support also doesn't send an answer how to solve the problem.
    BTW I have also Windows 7 and the newest version of iTunes 64-bit.
    Greetings Mike

  • I do not have the pages icon on the bottom right of Safari ios 7. When I press the plus sign at the top right I see 'private' on the bottom left side but there are no buttons on the bottom right at all. I am trying to get Safari to have the tab Rolodex

    I am super frustrated with Safari in ios 7.   I do not have the pages icon on the bottom right of Safari ios 7. When I press the plus sign at the top right I see 'private' on the bottom left side but there are no buttons on the bottom right at all. I am trying to get Safari to have the tab Rolodex look of the tabbed windows. So I can see the pages. Hope this is making sense.  Why am I not seeing the pages button on the bottom right of Safari?
    Thanks!

    Bummer!  Hopefully this will change in the future.  At least I know now that I am not crazy for not seeing the pages icon!  Thanks so much :)

  • Good afternoon! I purchased a few months the basics of adobe photoshop package with the CC and Lightroom, but has expired, and was made the annual package. What can I do to solve this problem. I have two weddings being edited and now I can not finish the

    Good afternoon! I purchased a few months the basics of adobe photoshop package with the CC and Lightroom, but has expired, and was made the annual package. What can I do to solve this problem. I have two weddings being edited and now I can not finish the work. I thank you.

    Renew the subscription?

  • Why aren't my clips evident in my event? My project icons are there and the media IS in the event. I see it on the hard drive. HELP!

    Why aren't my clips evident in my event? My project icons are there and the media IS in the event. I see it on the hard drive. HELP!
    It is the strangest thing. I click on the project and it is there with all the stuff and cuts, etc., but no clips in the event!
    Thank you.

    You u r right.
    Thanks I figured it out. It was the sort by preference toggle UP TOP for clips. I was fabulously ignorant of it till this AM. Thank you very much for answering. 
    Mike S

  • Setting the runtime environment for MySQL & creating tables,compile query

    Hi....
    i am a new user of MySQL server.i don't know the Rutime Environment on my machine.so please tell me how can i set the environment for MySQL.
    How can i create tables & compile query please tell me?

    All of those are MySQL only questions. Nothing to do with JDBC.
    There are MySQL forums. And there is certainly lots of MySQL documentation. So what of that have you read?

  • In the English environment does not correctly display the Chinese

    I design query in the English environment to input Chinese characters. It can be run correct in the excel, but in the web page or portal display incorrect.
    My environment of language is English, but I want to display Chinese in the portal.
    How can I do ?
    Any suggestion!
    Thanks.

    Hi ,
    I am facing one issue in WAD ,Could please help me out
    I am developing my reports in language English
    In WAD 3.x when we execute the report in the URL we can see language =EN, (https://inls51556188a:6001/sap/bw/BEx?sap-language=EN&bsplanguage=EN&CMD=LDOC&TEMPLATE_ID=ZLUMM_Q100_TPL01)so even when the user browser settings are in German still the report gets displayed in English where as when the user login in German and execute the report in WAD 7.0 it displaying the techical names for text data and infoobjects names as there is no text data maintained in German.
    Is there a way to fix the language in the iView of the WebTemplates directly in the Portal.If so how can this be done?
    Thanks,
    Sany

  • Add runtime environment for Java Web Tomcat 7: JRE

    When adding the Runtime Enviroment for SAP Java Web Tomcat 7 there is an input field JRE.
    In the documentation https://help.hana.ondemand.com/help/frameset.htm?7613f000711e1014839a8273b0e91070.html this field is not mentioned.
    I may choose
    - Workbench default JRE
    - sapjvm_7
    Which is to be used when Getting Started with SAP HANA Cloud, please?
    By the way: there is another Eclipse-Installation with ABAP in Eclipse at the same computer.

    You can choose either one. It's even very likely that Workbench default JRE is the same as sapjvm_7. If you click on Installed JREs... next to it, you can see all JREs and which is the default one.

  • I can't cut and paste and the mac doesn't see me as the admin

    Okay so here are my current frustrations and issues:
    1. I can't cut and paste anything! Not from emails, not in documents, nothing.
    2. I went to make changes in the utilities and when I started, under my name, it said admin and now it says standard and the computer won't allow me to make changes. I try to enter my name and password and the computer says I am not the admin.
    3. I can't delete the "test" user and "guest" user because apparantly there is no admin.
    I have rebooted using the install disk and I was able to change the passwords but I still can't get in as the admin.
    Is there a way to override this before I a) pull out all of my hair, my husbands hair and the hair belonging to my cat and/or b) before I throw the machine out the window and then have another frustration that the unit is not working?! 

    First back up all your data, if you haven't done so already.
    Boot in safe mode (shift key down at startup) and check to see whether the clipboard now works. If it does, reboot as usual (not in safe mode) and try again.
    Next, boot in single-user mode by restarting the computer and holding down the Command and S keys at the chime, until you see white text on a black background. Wait for the text to stop scrolling, then follow the instructions on the screen, which will tell you run the fsck and mount commands. Be very, very careful to type the commands correctly. After you enter the mount command, please enter this:
    rm /var/db/.AppleSetupDone
    Then this:
    exit
    The Mac will now boot up as if for the first time. Go through the setup procedure to create a new admin account with the same name and password as the old one.

  • Where on the Academic Logic Studio 8 Package is the Serial Number?

    there's a window asking me for the serial number but it's been about 2 years since i installed it and don't remember which one of these numbers is the right one. i already tried three of them. where in the package is the right number located?

    It is printed on a piece of paper which is inside the box and states "serial number"

  • The "nvidia-beta-ck" aur package and the "linux-ck" package issue?

    I use the linux-ck unofficail repo to install the BFQ scheduler enabled kernel.  Today it upgraded to the 3.8.8 and it updated fine but the 319 nvidia beta drivers weren't installed after the update.  So I reinstalled the nvidia-beta aur package and everything was fine.  Is there a way for it to automatically hook the nvidia drivers into the kernel -- say with dkms or will I need to re-install the drivers everytime the kernel updates.

    I think there's an nvidia-all package in the AUR no?  You can probably modify that to work with the beta package.

  • With version 5 of Firefox, if I open more than 1 session, most of the time I cannot see anything in the navigation bar and my back and forward buttons do not work.

    I open 1 session of Firefox 5.0.1 and everything seems to work fine. Then I open a second session of Firefox and most of the time the navigation bar does not show the page that I am on and the back and forward buttons do not work. When this happens, the first session always remains working. I am an internet marketer so I have at least 2 or 3 sessions going at any given time.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • None of my iDevices can read my iTunes library after an hour of availibility. When I first start iTunes I can read the library, but after about 30 minutes my iPad's and iPhones can no longer access the library. I see it in the shared list, but no access.

    None of my iDevices can read my iTunes library after about 30 minutes. My iDevices lose connection to my library and  I have to do one of the three following things in iTunes to regain connectivity: 1. Restart iTunes 2: Stop / Start Home Services 3: Start playing a song.
    I'ts as if iTunes goes into a background or sleep mode. During the loss of connectivity my iDevices show that there's a library shared, but I cannot connect to it.

    Smae issue here, but I'm unable to get Home Sharing started again (after MAc and iOS restarts, Home Sharing on/off. etc.) This happend a few weeks ago and turngin Home Sharing Off/On fixed the connection issue b/w iPad2 5.1 and iTunes 10.6.1 running on a OSX10.6.8.
    I updated to iOS 5.1.1 on iPad2 today, watched a movie and then about 20 minutes into a 2nd movie I lost connection (Sharing tab in Video app disappeared and has not come back.) The update seems like the culprit, but odd it worked for over 2 hours before stopping, odd I can't get Sharing to work anymore (iTunes see's my iOS devices b/c I can conenct to iTunes to enter my passcod efor connecting the Remote app.) Appears to be an issue with iTunes broadcasting Home Sharing, even thougt it says it is on.

  • Actually, I pay about 60€ per month for the abo. I see advertises, that the actual cost are much cheaper. How can I change?

    see title

    If you are eligible for the special promo CC offer then you can cancel the present subscription without cancellation fee & then buy the new offer CC.
    Regards
    Rajshree

Maybe you are looking for

  • Itunes 10.6 crashes Windows XP SP2

    I have tried uninstalling & reinstalling via instructions from this forum. It still crashes my entire system, requiring a restart. I have no plugins or security software installed. In desperation I installed Spotify. It plays my music fine, but in ge

  • Problems with BBC iPlayer Desktop and Adobe Air for Mac

    I would be grateful for anyone who can help me with a problem I have on my Laptop running Mac OS X Lion 10.7.3.I am having difficulty running BBC iPlayer Desktop and I suspect it is caused by Adobe Air. Recently I was prompted to update Adobe Air to

  • Add a new column into repository

    hi In BI11g, how to add a new column into repository? Thanks kavi

  • I Pod shuts down computer

    My i tunes appears to work perfectly well but when i connect my i pod (older 20G model)via the apple cable the i pod fails to appear on the screen and within 30 seconds or so my computer shuts down and starts up again. I have reset my i pod several t

  • Best way to reinstall Garageband 6.0.5

    Hi, I recently installed the newest Garageband 10 release on my Macbook Pro along with the in-app purchase download.  The thing is, I also want some of the Legacy presets, loops, instruments as well as options from the older 6.0.5 version.  I know th