Soo Frustrated

hey guys, im trying to create a simple java program that utilizes an sql database. I believe i have the right drivers installed, it shows me the Java DB(Network and Embedded) in my NetBeans Database section and I can see the databases. I can connect to the database by right clicking and hitting connect, but I am having a really tough time connecting through java. I've gone in and set Java DB installation and database location and even set up a JavaDBEmbedded classpath in the library manager. I also installed a file of derby.jar in every one of the folders that the project is in because i heard it needed to be in one of them.
When I run the code i throw an exception, but i dont know what it is that I'm doing wrong to throw it. I have a feeling it might be my set up of derby or something to do with environment variables, yet i can connect easily through netbeans and can even let it create a predfined database application (doesn't quite do what i need).
Please help, im getting desperate!!!
import java.sql.*;
public class Main {
public static void main(String[] args) {
try {
//driver name taken from java DB(Embedded) properties in NetBeans databases
Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
//url taken from wanted database properties url
String url = "jdbc:derby://localhost:1527/sqlTest";
Connection conn = DriverManager.getConnection(url, "root", "admin");
} catch (Exception e) {
e.printStackTrace();
Produces the following errors:
init:
deps-jar:
compile:
run:
java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at sqltests.Main.main(Main.java:18)
BUILD SUCCESSFUL (total time: 0 seconds)
What am I doing wrong??

No, you absolutely do not have to put derby.jar in your src folder. Just make sure your project includes derby.jar in its classpath, either directly or via some Netbeans library.
To double check your classpath at runtime, include something like this in your code:
System.out.println("Classpath: " + System.getProperty("java.class.path"));
If the output does not mention derby.jar, there is an issue with your project's classpath.
If derby.jar is mentioned, check that the path to the file is correct.

Similar Messages

  • Im soo frustrated with itunes 7

    On my mac: iTunes 7 is supposedly the best thing every according to apple, but what ive found is that i can not put any of my mp4's on my ipod video.
    i have tryed updating quicktime, restoring my ipod.
    On my PC:The iTunes program wont even open, i double click and the cursor turnes into an hourglass but after that not a thing happens. i have tryed removing itunes completely and reinstalling...Nothing!
    Any help would be much apreciated.
    ibook g4 60gb and hp desktop , windows XP    

    Same exact problem... what do i do??? Ths is extremely lame.

  • Frustrating speed..can someone look at my stats?

    Hi Ok i recently had alot of problems with the connection speed on my broadband (homehub3), so i called bt up and suggested the engineer should check the problem. He found a line problem and so he fixed it. But yet i am still finding it slow even though it has improved abit than the last time, but serioulsy it is soo frustrating that i can not even watch a video on youtube coz it doesnt load......which then it goes blury and then the sound of the video suddenly disappears. And im not sure why? He did say that i have to wait 10 day training period, but i am an impatient person...and also he said th average speed that im suppose to get is 16-19mbps.
    And can someone tell me the difference between downstream and upstream?
    And whats my average speed that i am getting?
    Here are the stats:
    ADSL Line Status
    Connection Information
    Line state:
    Connected
    Connection time:
    0 days, 06:20:01
    Downstream:
    286.3 Kbps
    Upstream:
    1.07 Mbps
    ADSL Settings
    VPI/VCI:
    0/38
    Type:
    PPPoA
    Modulation:
    G.992.5 Annex A
    Latency type:
    Interleaved
    Noise margin (Down/Up):
    31.3 dB / 6.1 dB
    Line attenuation (Down/Up):
    22.2 dB / 11.1 dB
    Output power (Down/Up):
    15.9 dBm / 12.0 dBm
    FEC Events (Down/Up):
    0 / 32
    CRC Events (Down/Up):
    0 / 34
    Loss of Framing (Local/Remote):
    0 / 0
    Loss of Signal (Local/Remote):
    0 / 0
    Loss of Power (Local/Remote):
    0 / 0
    HEC Events (Down/Up):
    0 / 15
    Error Seconds (Local/Remote):
    3 / 7

    Can someone check my stats again. It seems to be changed? What speed am i getting at the moment even though i am in the 10 day training period?
    ADSL Line Status
    Connection Information
    Line state:
    Connected
    Connection time:
    0 days, 01:09:33
    Downstream:
    11.24 Mbps
    Upstream:
    1.05 Mbps
    ADSL Settings
    VPI/VCI:
    0/38
    Type:
    PPPoA
    Modulation:
    G.992.5 Annex A
    Latency type:
    Interleaved
    Noise margin (Down/Up):
    15.0 dB / 6.1 dB
    Line attenuation (Down/Up):
    22.2 dB / 11.1 dB
    Output power (Down/Up):
    20.2 dBm / 12.0 dBm
    FEC Events (Down/Up):
    84 / 0
    CRC Events (Down/Up):
    0 / 0
    Loss of Framing (Local/Remote):
    0 / 0
    Loss of Signal (Local/Remote):
    0 / 0
    Loss of Power (Local/Remote):
    0 / 0
    HEC Events (Down/Up):
    0 / 0
    Error Seconds (Local/Remote):
    3 / 17

  • I need help to change the password to my Apple ID

    I have two apple ID's I made the second one for my iCloud when I bought my iPad not knowing that I could have used my normal Apple ID that I use for everything else. Now I cant sign out of that apple ID in my icloud on all three of my devices my iphone 4, my ipad and my iphone 5 I currently use, because I cannot for the life of me remember my password!
    I have tried everything I can remember and none of the passwords I was sure would work, works. So first of all I tried to have apple send me an email to reset my password and no email is received in my email account from apple, I have checked my other two email addresses I use thinking maybe I entered those as my alternate email addresses and there is nothing from apple in either of them for this particular apple ID. Then I tried the option to answer my security questions and it doesn't even recognise my date of birth linked with this apple ID! which is ridiculous because the account is mine. So I started googleing and found that I could change my normal apple id with the one I want to change the password to but when I enter that email it says 'email must be valid,be available and not be a domain owned by apple' and it wont let me save that email address to do that.
    Then I found a video on youtube that tells you how to unlock it and delete it from your device without the password but it only works if the icloud is actually signed in and mine isn't signed in so I can't even do that, mine is signed out on all my devices but still on my phones and ipad and everything is grey so I cant click into anything! and every time I use my phone or ipad and go into safari or anything else a box pops up every two seconds asking me to sign into icloud its soo frustrating to have to click cancel every single time and now that I'm so fed up with it I thought I would now reset my password thinking it wouldn't be hard to do as I usually forget my passwords to almost everything and am constantly resetting them its become the most difficult thing to do with apple!
    I called apple support and they were trying to get me to do all these things in my settings and nothing worked! I've been needing to call them back and ask if there is a way they can just reset my password for me or if my phone number is linked with my apple ID so maybe they could text me my reset key, does anybody know if they can do that? usually these days everything can be texted to you like my email provider and net bank providers but Apple seem to not even have that option or can anyone tell me how I can hack into my own account? also I went to that "find my apple ID" thing when you go to sign in and popped in all my possible email addresses, either all together or one each with my name and it wont find this apple ID I'm locked into it's like it doesn't even exists anymore but it does exists I remember creating it, its still on all my devices with my picture there as well! I've even been thinking I should go to a hypnotist or something to help me remember this password its making me so frustrated I've never had a password of mine that I have forgotten that I've never been able to reset or crack back into but Apple makes this so difficult. can anybody help?

    Restore it.
    (83648)

  • Reversing a symbol from end of timeline?

    Hi everyone,
    Just recently started using adobe Edge and im loving it!
    I have a symbol which i would like to control via swipes left and right. Swiping left will play the symbols timeline forward and then swiping right I want the symbols timeline to play in reverse (so from the end of its timeline backward). So for example the symbol will obviously start from time 0, swiping left would simply play the timeline from 0 onwards, but swiping right i want it to play from the end of its timeline backwards.
    I have obviously figured out how to apply swipe actions but I cannot figure out the easiest way to reverse the symbols timeline!
    Thanks for any help!

    Hey,
    Thanks for the response. I tried the sym.playReverse() and it does play backwards! This is all good BUT in my symbols timeline there is 3 stops. So when I reverse the timeline from the beginning of the timeline the symbol will play in reverse but when it gets to the first stop it will skip a frame and go 1 frame too far back?? Its soo frustrating!
    Please has anyone got an idea why this is happening? Its destroying my whole project!
    Thanks

  • Error 1611 or 1603 on iphone 5

    Hello!
    I´m soo frustrated right now - it seems i can not get my new iphone 5 to work...
    I broke the screen my iphone 5 aproximatley 4 mounths ago, and bought a new screen on ebay. I bought this for over 300 dollars, and got a friend to fix it. (and paid him as well) He broke one of the thin wires when he was changing the screen, making the front camera and speaker useless. Except that, the phone worked just fine. Then he bought a new wire, installed that, and i got it back. But now, it wont work! When i start it just a picture of an USB cable towards an itunes brand appear... and i have litterally tried everything. No matter what I do, I can not fix it, or restore it - the error code 1611 or 1603 appears om my mac screen when I connect it to itunes, and I get no further than that. And Ive uptaded all the programs, tried holding in home and of/on-button, go into the "hosts" on my mac (if you dont understand what i ment by that, just ask)
    Can somebody please help me?  Im cryin here, Ive used so much money on this and it does not work. Whats wrong with it?
    Ive tried every possible solution that appears on google, NOTHING works.
    I didn't bought the phone from Apple, but maybe I can send it in to them and I can get a new one?
    I dont expect that, but Ive would be in heaven

    What do you want us to tell you? The iPhone is NOT user servicable.
    You could have had the entire phone replaced out of warranty by Apple for $229. Why in the world would you spend $300 for a part? Apple does not sell parts. There are NO legitimate sources for iPhone parts.
    There's nothing much anyone can do for you.
    Apple won't touch that phone now. Once it's been opened by an unauthorized party, they won't go near it. It's no longer eligible for an out of warranty exchange.
    Chalk it up to a life lesson and buy a new phone.

  • Click event not working in Firefox but works everywhere else

    I have a bindElementAction of 'click' which fires in every browser but Firefox. I have no idea why that is. Any ideas? Here is the event:
    Symbol.bindElementAction(compId,symbolName,"${button}","click",function(sym,e) {
        console.log('clicking the button');
    I get a console.log message in Chrome, Safari, and IE but nothing in Firefox.

    I have the same problem with my infiniti G37. Soo frustrating!

  • How does an account holder return their old phone when they edged up through the Verizon Edge Program? I have wasted way too much of my time trying to do this and am certainly disgusted with Verizon's communication and website for this.

    I have been searching this helpless website for 3 nights after work trying to figure out how to get my old phone back to "WHEREVER" it needs to go. I am soo frustrated, I'm ready to throw this phone away and forget it. I've read through posts and tried the links left to only be taken where I've already been, with NO LUCK AT ALL. I've even called verizon myself to get, yet again, NO HELP!! Can anyone give me the real answer as to what to do.???
    I've got the box I received my new phone in, with the plastic bag for the old phone and some papers the clearly read, "Keep this for your records" nothing that says RETURN LABEL. Don't have an address, either!

    This is the same response other community users have gotten, there is not option to print a label. This is also where li was told to go look for the receipt when I card
    Verizon. THERE IS NOTHING THERE TO PRINT. I've tried to include a link to that page, so you can view yourself,  but I'm thinking it won't post in this community discussion.
    So, with this, I'm still stuck in the same situation... HOW DO I RETURN THIS PHONE? WHY CANT VERIZON EMAIL ME A LABEL DIRECTLY???
    https://wbillpay.verizonwireless.com/vzw/secure/orderhistory/viewOrderHistory.action

  • Need help Restoring iPod to factory settings

    I have a new iPod 30G and somehow screwed things up trying to use Winamp to transfer files. I upgraded iTunes to 7 and when I start it up, it polls my iPod and I get this message:
    iTunes cannot read the contents of the iPod "IPOD". Go to the Summary tab in iPod preferences and click Restore to restore this iPod to factory settings.
    The only problem is that my iPod doesn't show up on the left so I can't get to the preferences. I downloaded the iPod updater 6.28.06 but it won't work with iTunes 7, it says that iTunes 7 will do the updating. Uninstalled 7, went back to 6 and now the updater says it has an iPod service error. Have rebooted my PC. Have reset my iPod, have slept very little
    Any help getting my iPod back to factory settings would be appreciated. BTW, my PC does recognize the iPod and I can browse the I: drive so I know it "should" work.
    Thanks in advance.
    Alienware   Windows XP  

    I'm having the same exact issue with the nano i just bought. I was able to transfer a few files using itunes and then i tried to open up a folder with mp3s (outside of itunes) and mass upload one album. after i tried that it started giving me the same error message. i've tried finding the reset and itunes reads the ipod but it doesn't show up as selectable on the source pane. grr its soo frustrating.

  • HT1338 Invalid URL

    Can someone please help me!!
    Everytime i have tried to access Facebook since the end of May 2012 the below error occurs:
    Invalid URL
    The requested URL "/", is invalid.
    Reference #9.54e0fc7d.1344336752.2482a93
    I have taken my macbook in to the apple store and they re-installed all software to try and solve this problem. The weird thing is facebook loaded with no trouble at the apple store yet at my place and my partners place it wont work. Please note it works on everyone elses laptop except mine.. I have tried everything from different browsers to reseting all options. My brother today reset our modem, and it still wont work.. I am absolutely stumped!!
    Please help, its soo frustrating!!
    Thank you
    Ashleigh

    Try      www.www.facebook.com
    Best.

  • IPod Classic not working in car but works everywhere else. Troubleshooting?

    My iPod is not working with my Infiniti iPod jack but all other iPods work fine with the in-car system. My iPod synchs fine to my Mac and to an external stereo player through the connector on the bottom of the unit. So it looks like both units work fine with any iPod, but only my iPod will not work with the car while it does work with other connections. How can I troubleshoot this? Thanks for any help.
    BTW, the Infniti is a 2008 G37 and the dealer just put a brand new unit in it and the same thing happened. The iPod is a 2008 80GB Classic.
    Heeeelp!!!!

    I have the same problem with my infiniti G37. Soo frustrating!

  • My enter key doesnt work

    heyy!! my issue is abit different. Before I used to hold alt down and use the character that i needed. Now i have to let go of the key and type. Its very annoying. I have tried wipe and master reboot!! Nothing works.. Also to top it all.. my enter key doesnt work... im constantly texting and bbm'in but i cant use enter i have to use the centre button!!! im soo frustrated. my phone is out of warranty...  .. im very upset.. i used to be inlove with my phone!! its a curve 8520 

    Just plugged my wired keyboard in and it works. very strange, seems very unlikely that the only broken key is the enter key mhm. expect the unexpected. will contact the apple support on monday cause i live in germany and they dont work 24/7

  • Extrnal drive in after a shutdown and it came up a different letter. Now Lightroom does not recognize any of my photos..

    I plugged  my external drive in after removing it to clean the computer. HP PC. When I plugged the external drive in again the drive letter changed and Lightroom could not find any of my photos 11,000 or so of them. I have tried the usual recommendations of locating etc and nothing has worked. The only thing I can do is load them one sub folder at a time. What is the easiest way to re locate all of my photos. No one so far has an answer, only the easy recommended ones which have not worked for me.Please help, i am soo frustrated have spend all afternoon trying things to no avail. If you haven't already guessed, I am not very computer literate

    . Can I simple "Import them" back into Lightroom?
    No
    It is very disappointing that Lightroom can be so adversly affected by simply disconnecting tlhlen reconnecting a  drive.The computert runs much better, by the way, now that it is relatively dust free.
    It should be a simple fix. But if you start moving things in Lightroom instead of changing the drive letter, it becomes less simple.

  • I am having a **** of a time installing CS6, any thoughts?

    month old imac...bought CS6, download fine...many times... due to....    WILL NOT INSTALL....i got checksum errors and then i just got a
    log of 452 errors....which sadly i cannot decode...have spent HOURS online, screen sharing with adobe to fix this and now i'm waiting
    to hear from them again...i have 10.7.3 here and as far as i know, meet system requirements for CS6....yes, i have tried both user and root
    account and restarting in safe mode...i did at adobe's suggestion download 10.7.4 but that was f*** up too...
    any thoughts?
    much appreciated...
    Julia

    geez, well i've spent about 7 hours screen sharing with adobe....and they've been great...but i am still one month in with a new imac and adobe says it's trouble with my machine...i'm soo frustrated...

  • Itunes 9 download crashes my laptop

    Hi all,
    I got a brand new Ipod for my birthday and on connecting it to my laptop it told me i needed at least itunes 9.0 for it to work.
    I currently have itunes 8.1.2 and for some reason i can't install itunes 9.0.
    Whenever the download is about 75% complete my laptop crashes, even task manager. And i have to manually reboot before i can do anything.
    I've tried to download itunes 9.0 from the website but the same thing happens it crashes just when it begins to install Quicktime.
    I uninstalled itunes and then when i tried to uninstall Quicktime again everything crashed. I have clicked repair as well and again it crashes my laptop.
    Pleaseeee can someone help me i just want to get up and running with my lovely new ipod and am soo frustrated.
    Thanks,
    Caitlin

    I uninstalled itunes and then when i tried to uninstall Quicktime again everything crashed. I have clicked repair as well and again it crashes my laptop.
    Good lord. That's a fairly dramatic symptom to have occur during an install/uninstall (nowadays), Caitlin.
    My worry here is that there's some disk damage on the PC "underneath" some QuickTime program files. So when Windows Installer tries to remove those files, it hits the dodgy patch of disk, and everything turns to custard. (Usually with one of those sorts of problems you'd get a 2330 installation error message, but if the disk damage is of the right/wrong type, a freeze of the PC would also be quite plausible.)
    Try running a disk check over the drive you've got your QuickTime program files installed on. Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors:
    [Check your hard disk for errors|http://windows.microsoft.com/en-us/windows-vista/Check-your-hard-disk-fo r-errors]
    Does the disk check find/repair any damage? If so, can you get an iTunes/QuickTime install to go through properly afterwards?

Maybe you are looking for