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.
Summary: | Java DB is not working properly | ||
---|---|---|---|
Product: | db | Reporter: | abhay24292 |
Component: | Derby | Assignee: | Jiri Rechtacek <jrechtacek> |
Status: | RESOLVED INCOMPLETE | ||
Severity: | normal | Keywords: | RANDOM |
Priority: | P3 | ||
Version: | 7.0.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
abhay24292
2012-08-29 16:50:45 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(); 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. |