跪问:java编译时报错

04-11-18 delivery
CheckLogin.java:4: package javax.servlet does not exist
import javax.servlet.*;
^
CheckLogin.java:5: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
CheckLogin.java:7: package dounan.database does not exist
import dounan.database.*;
^
CheckLogin.java:8: package dounan.common does not exist
import dounan.common.*;


我编译的时候报错,报错代码是:
package dounan.admin;

import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import dounan.admin.*;
import dounan.database.*;
import dounan.common.*;

public class CheckLogin{
};

admin和database目录下有相关的.class类了,环境变量我也设了,怎么还报错??郁闷死啦,大家快帮帮我!

我的容器为tomcat5.0和jdk1.2,是不是我设置上出了什么问题???