hi,

I know this is probably quite a basic question but I have been trying for ages to sort 
it out. Please help.


I have Windows XP home edition on my PC, and have Jakarta Tomcat 4.03 running with 
Java 2 sdk1.4.0.

I find that I am having trouble compiling programs that have import statements similar 
to the following

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

The errors are occuring with the servlet imports if I compile using     javac 
login.java
That is to say the two import statements below are failing

import javax.servlet.*;
import javax.servlet.http.*;

The only way I can get the login.java program to compile is by using the following 
statement.

javac -classpath "C:\Program Files\Apache Tomcat 4.0\common\lib\xerces.jar"; login.java

I would really like to avoid having to use such a large statement.
Can someone tell me what I need to do so that I can compile my program with a simple 
line.
Surely there is something I can do so that the following will work
javac login.java

Yours desperately frustrated

Laurence J Turpin

Reply via email to