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)");

}

}

[1337 byte] By [ad87geaoa] at [2007-10-1 22:48:13]
# 1
Hello,I've tried to compile your code and there wasn't any problem (as I expected) so I assume that you CLASSPATH is incorrect or there is something wrong with the installation of your jdk.Hope this helps
virusakosa at 2007-7-13 14:53:11 > top of Java-index,Administration Tools,Sun Connection...
# 2
There is no problem in your classpath but make sure that your classpath is set correctly.set classpath=%classpath%;C:\j2sdk1.4.2_04\libor got to Environment variables and then edit the classpath vartiable and add the C:\j2sdk1.4.2_04\lib path (Respective to your system).
ShivaKatulaa at 2007-7-13 14:53:11 > top of Java-index,Administration Tools,Sun Connection...
# 3
> There is no problem in your classpath but make sure> that your classpath is set correctly.> WOW!Good example of self contradiction!
Ishana at 2007-7-13 14:53:11 > top of Java-index,Administration Tools,Sun Connection...