Hello all!
I am trying to create a database programmatically with java and derby drive using netbeans.
when I run this code:
Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
Properties connectionProps = new Properties();
connectionProps.put("user", "demo");
connectionProps.put("password", "demo");
con = DriverManager.getConnection("jdbc:derby:C:/Documents and Settings/Administrator/.netbeans-derby/simple;create=true", connectionProps);
con.commit();
there arent any errors but when I am trying to connect to the db that I created the netbeans message is:
unable to connect. sqlcode -1 sqlstate XJ040 THE DATABASE WAS CREATED BY OR UPGRADED BY VERSION 10.6
thanks for helping
Edited by: vitaly87 on 04:48 06/05/2011