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.
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
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();
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.