Problems with impoting java.sql.*
Hi.
When I'm compiling the following code I get this message:
SimpeltDatabaseEksempel.java:4: Package java.sql not found in import import java.sql.*
What could be wrong?
/lars
Here is my code:
import java.sql.*;
publicclass SimpeltDatabaseeksempel
{
publicstaticvoid main(String[] arg)throws Exception
{
// Udskift med din egen databasedriver og -URL
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection forb = DriverManager.getConnection("jdbc:odbc:datakilde1");
Statement stmt = forb.createStatement();
stmt.executeUpdate("create table KUNDER (NAVN varchar(32), KREDIT float)" );
stmt.executeUpdate("insert into KUNDER values('Jacob', -1799)");
stmt.executeUpdate("insert into KUNDER values('Brian', 0)");
}
}

