import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
// Notice, do not import com.mysql.jdbc.* or you will have problems!
public class LoadDriver
{
public static void main(String[] args)
{
try
{
// The newInstance() call is a work around for some
// broken Java implementations
Class.forName("com.mysql.jdbc.Driver").newInstance();
}
catch (Exception ex)
{
System.out.println("Error");
}
}
}
izbacuje Exception in thread "main" java.lang.NoClassDefFoundError: LoadDriver. U chemu je problem?