This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 217586 - Java DB is not working properly
Summary: Java DB is not working properly
Status: RESOLVED INCOMPLETE
Alias: None
Product: db
Classification: Unclassified
Component: Derby (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2012-08-29 16:50 UTC by abhay24292
Modified: 2012-10-24 16:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abhay24292 2012-08-29 16:50:45 UTC
Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_03
Runtime = Java HotSpot(TM) Client VM 22.1-b02
Comment 1 abhay24292 2012-08-29 16:51:03 UTC
String s = enter.getText();
                disp.setText("The Enetered Text is :"+ s);
                    try {
                        Class.forName("org.apache.derby.jdbc.ClientDriver");
                    } catch (ClassNotFoundException ex) {
                        Logger.getLogger(TestappView.class.getName()).log(Level.SEVERE, null, ex);
                    }
                    Connection con;
                    con = DriverManager.getConnection("jdbc:derby://localhost:1527/Mydb","root"," ");
                    Statement st = con.createStatement();
                    st.executeUpdate("create table samp(text varchar)" );
                    st.executeUpdate("insert into samp values(s)");
                    st.close();
                    
                    con.close();
Comment 2 matthias42 2012-08-29 19:41:43 UTC
Please provide more information - 

1. What is the nature of the project you are using this?
2. What exactly happend? You did not provide the error!
3. What did you expect?

Just a guess: Did you add derby/javadb library as a dependency to your project?

Please reopen this bug, when you provide more information.