Hi Laurence,

Copy the servlet.jar file located in your (CATALINA_HOME)\common\lib directory into 
your
(JDK_HOME)\jre\lib\ext

where CATALINA_HOME = the folder where you have your Tomcat instalation (ex: 
c:\program files\Tomcat 4)
and JDK_HOME = the folder where your java development kit instalatiojn is located (ex: 
c:\jsdk14)

that should do the trick.

Carlos


-----Original Message-----
From: Laurence Turpin [mailto:[EMAIL PROTECTED]]
Sent: terça-feira, 26 de Março de 2002 10:07
To: [EMAIL PROTECTED]
Subject: Problems compiling programs.


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

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to