DerbyDB
How to Create
At service of netbeans: Right click on JavaDB and fill in information. Let it save in server.
Connection
public static Connection con(){
try{
Connection c;
// Class.forName("com.mysql.jdbc.Driver");
c = DriverManager.getConnection("jdbc:derby://localhost:1527/Test", "xay", "xay999");
JOptionPane.showMessageDialog(null, "Can");
return c;
}
catch(Exception e){
JOptionPane.showMessageDialog(null, "Can not");
return null;}
}