XML Code: I was trying to connect to a simple database through netbeans using the Type 4 connectivity ( Derby ) . Although i could successfully compile the following code for it : [b]Source Code [/b] [code=java] package javaapplication2; import java.sql.*; public class JavaApplication2 { public static void main(String[] args) throws ClassNotFoundException, SQLException { String name; int id; Class.forName("org.apache.derby.jdbc.ClientDriver"); Connection con=DriverManager.getConnection("jdbc:derby://localhost:1527/Sample1"); ...