Problem with connection with db netbeans

hello all!
i created a db in
jdbc:derby://localhost:1527/simple [demo on DEMO] ---->Demo
my user name demo and the pass demo
in the info of the db i get this:
display name:
jdbc:derby://localhost:1527/simple [demo on DEMO]
the problem lines is
Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
and
Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/simple", "APP", "demo");
i tried to change the APP to demo but the same.
the errors are:
java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
java.sql.SQLException: No suitable driver found for jdbc:derby://localhost:1527/simple
the img of the work is here:http://yfrog.com/0cimpatg
thanks for all!

user12163960 wrote:
thanks the first line ok! THE LINE IS WORKING NOW:
Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
now i have problem with:
Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/simple", "APP", "demo");
the error:
java.sql.SQLException: No suitable driver found for jdbc:derby://localhost:1527/simple
You should really read the Derby manual.
When you use a url with jdbc:derby://localhost: then you must start a Derby server first.
If you want to use the embedded engine, the URL is: jdbc:derby:/path/to/database
More details are here: http://db.apache.org/derby/docs/10.6/devguide/cdevdvlp34964.html

Similar Messages

  • My iPhone 5 got problem when connect with lighting cable, this will keep pop up message "this accessory may not be supported"

    My iPhone 5 got problem when connect with lighting cable, this will keep pop up message "this accessory may not be supported", I can't charge or sync at all. I tried plug and unplug many time, still can't detect/charge my iPhone5, but sometime will 'lucky' that can connect to my iTunes and charge battery…
    This message will auto pop up also when I don't have plug anything in my iPhone 5, It is very annoying…
    The lighting cable is original and now i'm using OS 7.0.4 / iTunes is 11.1.3
    What I can do to fix this problem? Thank you.

    I would try using another cable you can likely borrow one to test from somebody
    if it's the same then likely the connector in your iphone have been damaged

  • I have a problem to connect with FaceTime. I am using OS X 10.9.1 on a Mac PowerBook which is 4 weeks old. I can connect on iPhone but not from my computer.

    I have a problem to connect with FaceTime. I am using OS X 10.9.1 on a Mac PowerBook which is 4 weeks old. I can connect on iPhone but not from my computer. Does anyone have a similar problem???

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

  • Problem in Connecting with the server

    I have a problem while sitting the e-mail. A message comes saying that the device had a problem in connecting with the server. My BB is Tourch 9860
    Please help me

    Hi gaf4u
    Welcome to BlackBerry Support Forums
    Do you already have any email account integrated with your device ?
    If not then do you have a specific BlackBerry data plan / BIS from your Carier on your account ?
    let us know.
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Problem in connecting with Oracle

    hi everybody
    I have a problem in connecting with Oracle express 10g. I got an error that doesn't allow me to connect. hope anyone can help me and solve this problem
    --------------------Configuration: test - JDK version 1.6.0_20 <Default> - <Default>--------------------
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at DB.dbConnect(test.java:36)
    at test.main(test.java:18)
    this is the code that I'm following
    import java.io.*; import java.sql.*; public class test2 {   public static void main(String[] args) {     try {       Connection con=null;       Class.forName("oracle.jdbc.driver.OracleDriver");       con=DriverManager.getConnection(         "jdbc:oracle:thin:@PLANET:1521:ORCL",         "scott",         "tiger");       Statement s=con.createStatement();       s.execute("INSERT INTO BOOKS VALUES('A Tale of Two Cities','William Shakespeare',4567891231,'05-JAN-1962')");             s.close();       con.close();   } catch(Exception e){e.printStackTrace();} } }
    Edited by: Vantasia on Nov 12, 2010 10:18 AM

    1. Is the connection url correct?
    "jdbc:oracle:thin:@PLANET:1521:ORCL" is fine.
    2. Is the TNS listener started?
    c:\oracle\product\ora10\bin> lsnrctl status
    3. Is a firewall between client and database server?
    Connection url with firewall would be different.
    http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/jdbcthin.htm#i1004276

  • Problem in connection with sql server

    hi ,
    i am facing problem in connection with ms sql server..please help me out.... i created the database ChandanClient...and there is one table Expense_code_Table...
    i want to insert the data into this table.. i am trying to create a demo example.. here is the code
    package demo;
    import java.sql.*;
    public class getdatabase {
         public static void main(String[] args) {
              Connection con =null;
              int ExpenceCode1=1;
         String ExpenceName1="exp_paper";
         String Organization1="exp_organization";
              try
                   Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
                   con=DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433");
                   Statement st = con.createStatement();
                   String q1="INSERT INTO Expense_code_Table(ExpenceCode,ExpenceName,Organization)VALUES("+ExpenceCode1+",'"+ExpenceName1+"','"+Organization1+"')";
         st.execute(q1);
              }catch(Exception e)
                   System.out.println(e);
              try
                   con.close();
              catch (SQLException e)
                   e.printStackTrace();
    after running program
    it is showing me...
    java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
    java.lang.NullPointerException
         at demo.getdatabase.main(getdatabase.java:22)
    Exception in thread "main"
    please help me out how to solve this problem...
    thanks in advance...
    bye
    chandan sharma

    Put ur driver class files in the class path...
    regards
    Shanu

  • I have problems to connect with Database Server in MDM SP5

    Hi,
    I am upgrading to SP and get problems to connect to the database server. I am able to start and stop the MDM server, but if I tru to create a new repsoitory or unarchive a repository I get this errormessage. "Unable to connect with Datase Server". In ealier versions og MDM i did not give any username or password whwn I made a new repositirt. Do you need to that no?
    I see in the mds.ini file that there is defined a user "Sql Server DBA Username=master ". I sthis the user we shall use or is there another user?
    Regars John-Kjell Hoset

    Hi John,
    I too faced the same problem and get rid of it by installing
    SQL Server 2000 Driver for JDBC Service Pack 3
    which you can download from
    http://www.microsoft.com/downloads/details.aspx?FamilyId=07287B11-0502-461A-B138-2AA54BFDC03A&displaylang=en
    and i installed Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) Release A
    which you can download from
    http://www.microsoft.com/downloads/details.aspx?FamilyID=413744D1-A0BC-479F-BAFA-E4B278EB9147&displaylang=en
    Install with setup SAPWD="YourPassword"
    I connected MDM Console wiht DBMS with Login credentials as
         UserName        sa
         Password         YourPassword
    Hope this help to solve your problem.
    Regards,
    Santosh.

  • Problems to connect with VNC to headless mac mini after sleep mode

    Hallo,
    I've a Mac Mini (late 2009) setup with Lion Server. I want to use it without mouse/keyboard/monitor attached. Since I want to safe power ( green IT ;-) ), I would like to use sleep mode.
    First thing I've learned is, that Lion Server prevents the mini to go to sleep after an idel time as set in power saving.
    The only thing that works, is setting up a shedule with sleep / wakeup times.
    When I start the mini, everything works great. I can connect via VNC. The Mini goes to sleep at the scheduled time and wakes up again as expected.
    From this time on, things begin to get strange:
    I can connect using VNC, but all i get is a grey screen with a moving cursor. So VNC is working, but there is no screen available on the Mini. Same if I use thightVNC from a Windwos PC. Get a grey screen.
    Further the system does NOT go to sleep at scheduled times any longer.
    I was able to track down the problem to the missing monitor: If the Mini wakes up without a monitor connected, I seems to wait to get the right resolution or what ever. All servives are working, SSH is fine even VNC works, but shows only a grey screen.
    I've been playing with attaching / detaching a monitor. Sometimes I got:
    - Boot with monitor
    - connect with VNC, see login screen
    - send Mini to sleep
    - disconnect monitor
    - wakeup Mini
    - VNC reconnects, showing grey screen
    - plug in monitor and wait until login screen appears on the monitor
    - VNC switches from grey to login screen
    The only way I can save some energy is a sheduled shutdown / restart. So headless works, but not after waking up from sleep.
    Any hint or solutions for this ?
    Thanks
    Marc

    Look in the security feature.  This is a link to the FAQ (step 6):  http://support.apple.com/kb/PH4014?viewlocale=en_US
    I had the same issue when I connected my Mac Mini to be a Media Server.
    /r
    C.

  • Problem in Connecting with Ftp

    Hi all,
    While Connecting to the ftp i am getting the folloeing error.
    "An error occurred while connecting to the FTP server 'mn01crm02:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 /usr/sap/SAP MDM 5.5/Server/Distributions/D11_ORCL/ADCWECC/Inbound/SAP_ECC/NewPort2/Ready: The system cannot find the path specified. '. For details, contact your FTP server vendor."...
    Previously port was not opened now the port issue has been resolved. Please focus some light on this error. what can be the possible ways to overcome this error. Considering that i have gven user namr and password correctly (TO connect with ftp) in sender file adapter.
    Thanks
    Sachin

    Hi ,
    The  error is surely of the Path .
    Just perform the following steps.
    1. Logon to the FTP machine.
    2. Go the Folder where the FTP is configured....(d:/ smflder/ FTPFolder/ Parent Dir/ Child Dir)
    3. Now in communication channel if u have used the path say (Parent Dir/ Child Dir)
    4. Then specify the Parent folder also in the channel for e.g. (FTPFolder/ Parent Dir/ Child Dir)
    This must solve your problem
    Regards,
    Ashwin M
    Mark the helpful answer

  • Problems with connection with Oracle Database (Dreamweaver)

    I'm trying to create a connection with a oracle database, with JDBC.
    In order to do that, I've downloaded the classes12.zip driver in my machine. This is the driver from Oracle.
    I've put this file into directory c:\Program Files\Macromedia\Dreamweaver MX\Configuration\JDBCDrivers.
    So, I've gone to Window -> Application -> Databases menu into Dreamweaver MX, clicked in the plus (+) signal and choosed Oracle thin Driver (Oracle).
    I've filled thin window with the following values:
    Connection name: conn1
    Driver: oracle.jdbc.driver.OracleDriver
    URL: jdbc:oracle:thin:@machinename:1521:SID
    Username: ....
    Password: ...
    When I click in the Test button into this window, the following success message appears:
    Connection was made successfully!
    But when I go to Bindings window to build a Recordset, the connection doesn't get the tables, and the following error message appears:
    Unable to retrieve tables from this connection, click on 'Define...' button to test this connection.
    Does somebody know the answer for this problem?
    Thank you.

    Don't bother with a loopback adapter unless you are using a laptop that needs Oracle to work whether connected or unconnected to the business network. Much simpler to just arrange for DHCP to assign you a fixed IP address (a lease reservation).
    It's the change of IP address which trips Oracle up, not the existence of DHCP. So if you can make sure your IP address will be the same, no matter how you acquire it, that's all you have to do.
    Installing a loopback adapter which isn't the primary interface at the point you install Oracle will mean your installation will get very confused as to whether to address things via the 127... address or the "normal" IP address. And yes, at that point, you'll not be able to connect to instances, or run listeners or do all sorts of other things reliably.
    If it were me, I'd uninstall the mess you probably now have as far as Oracle goes, install something like VirtualBox (free) or VMware Workstation (costs) and enjoy your Oracle experience inside the confines of a virtual machine whose networking setup you can configure and control to your heart's content, without it screwing up your real machine's ability to connect to your work's network when it needs to.

  • Problems to connect with my iPhone 5 to my wi-fi

    Hi,
    i have problems to connect to my wi-fi with my new iPhone 5.
    I didn't have the problems before, with my 3GS.
    What is the problem? Did i have to change something in my settings?

    Does your iPhone see your Wi-Fi network and accept the network password, if you're using a password?
    Is Wi-Fi grayed out on your iPad?
    If it isn't grayed out, this Apple doc is a good place to start -> iOS: Troubleshooting Wi-Fi networks and connections

  • Applet security problems while connecting with database

    i hav problem in the japplet connecting with sql database
    it gives security access denied error while running program as my driver is jdbc:odbc:bridge driver
    so for resolving this error how can i turn off security of applet and also which security permission to be change?
    plz reply

    baftos wrote:
    Maybe I should question the need to access a local database on the client PC.
    But anyway, the normal way to obtain security clearance is to use a signed applet.
    Another possibility is to grant the applet all permissions by modifying the security policy file of each client to grant your applet 'all permissions'. Note that in this case you must have access to each and every client PC or ask them to do so before running the applet.Database access at client's machine is ridiculous. I doubt this is what OP wants.
    @OP: request you to post the original security issue and the environment details.
    Thanks,
    Mrityunjoy

  • Facing problem in connection with OWB client

    Dear All
    Greetings!!!
    Im new to Datawarehouse building. I have installed OWB R1 at my own pc.I am facing problems in connecting OWB client..What exactly to put in Host name and Oracle Service name. i am logging in with the same system/password with normal login. Please guide me to enter in the datawarehouse world..
    Thanx and Regards
    Nukesh Bhoyar
    Mumbai(India)

    Hi Nukesh
    I know this doesn't really answer your question but Oracle have just made Release 2 of Warehouse Builder available and based on all of the info through this forum and other places, if I was you I would download R2 and install it instead of R1, as it is deemed to have way more functionality.
    Cheers
    M

  • Problem to connect with SMB

    My mac worked fine till a few days ago
    I restarted it and since then he won't let me to connect with SMB to specific server (Isilon)
    when I'm trying to connect with smb to windows server I don't have any problem
    does anyone have any idea how to fix it?

    Correction - when changing the workgroup name, I have to change it to something altogether different, apply the changes, then change it back again and apply the changes.  Simply retyping the name and applying this does not work.

  • Iphone 5 with ios 7.0.2 problem to connect with mikrotik ap

    may iphone 5 before update from ios 7 to ios 7.0.2 no problem to connect my office mikrotik ap wifi
    after update i have problem with my office ap wifi only and no problem with my home ap wifi

    Open Music App
    Choose artists
    Scroll up till you see the search bar
    type in the name of the genre you want to play
    scroll dwn til you find it and select it
    hit shuffle
    and you're in there.
    Yes, it's idiotic to be forced to take the long road to get there, but it works.  I truly hope Apple fixes this.

Maybe you are looking for

  • Using iPod as encrypted disk for G4 Backup

    i have created an encrypted disk image on my iPod for backing up my G4 desktop folder. works like a charm. however, OSX limits the size of this disk image to 500MB when it is created using Disk Utility. that is unfortunate since my desktop folder is

  • Mail in attachment in text format

    hi, As per my requirement I need to send the errored records of file into mail in text format. I have used the link to develop the code suggested by someone in sdn only to to so. http://www.sapdevelopment.co.uk/reporting/email/attach_xlsmod.htm. But

  • Can't access Time Capsule files

    Here is the situation: I've owned a TC for about a year now with no previous problems. Now I can't access the files even though the internet is still working fine and TC reports no problems. Until today, the TC icon would show up on my desk top and w

  • XML element provides incomplete output

    SQL> SELECT XMLELEMENT("relationship", 2 XMLFOREST(e.context,e.parentobject,e.childobject)) 3 "relationship element" 4 from objectassoc e; gives output like: <relationship> <CONTEXT>secondary</CONTEXT> <PARENTOBJECT>Activity</PARENTOB Is there a way

  • Don,t be fooled into replacing your back light (display) by people who did.

    I found a few webpages on changing the light for pismo,s dimming display and got really excited because I am really handy as long as you can take it apart. I went through the whole deal and and got to my display out of the frame (top cover of laptop