Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
I am working on a windows 98 machine and using Apache Jserv. Also I have downloaded jdk1.2.2 and jsdk2.0 and am using them.
My sample.java file is in the servlets directory of my Apache Jserv dir under C:\Program Files. I have set path=C:\jdk1.2.2 and classpath = C:\javaBut when compiling, I get the following errors
C:\Program Files\Apache Group\Apache JServ\servlets>javac sample.java
sample.java:5: Package javax.servlet not found in import.
import javax.servlet.*;
^
sample.java:6: Package javax.servlet.http not found in import.
import javax.servlet.http.*;
^
sample.java:9: Superclass HttpServlet of class sample not found.
public class sample extends HttpServlet{
^
3 errors
I don't know what to do. I tried running the IsItWorking.class file to check if the Apache server is running and it works just fine. However when I copied it to the same dir (under a different name) and recompiled using javac I got the same errors listed above.
Here's what my autoexec.bat file looks like
SET PATH=%PATH%;"C:\jdk1.2.2\bin"
SET CLASSPATH=%CLASSPATH%;"C:\java"
Please help! I am working on a deadline!
Thanks very much.
Anjali Shenoy
I am working on a windows 98 machine and using Apache Jserv. Also I have downloaded jdk1.2.2 and jsdk2.0 and am using them.
My sample.java file is in the servlets directory of my Apache Jserv dir under C:\Program Files. I have set path=C:\jdk1.2.2 and classpath = C:\javaBut when compiling, I get the following errors
C:\Program Files\Apache Group\Apache JServ\servlets>javac sample.java
sample.java:5: Package javax.servlet not found in import.
import javax.servlet.*;
^
sample.java:6: Package javax.servlet.http not found in import.
import javax.servlet.http.*;
^
sample.java:9: Superclass HttpServlet of class sample not found.
public class sample extends HttpServlet{
^
3 errors
I don't know what to do. I tried running the IsItWorking.class file to check if the Apache server is running and it works just fine. However when I copied it to the same dir (under a different name) and recompiled using javac I got the same errors listed above.
Here's what my autoexec.bat file looks like
SET PATH=%PATH%;"C:\jdk1.2.2\bin"
SET CLASSPATH=%CLASSPATH%;"C:\java"
Please help! I am working on a deadline!
Thanks very much.
Anjali Shenoy