Title: CLASSPATH in OAS

Ok I'm told our test web server is OAS oracle app server.
It's documentation says to set CLASSPATH $ORAWEB_HOME/classes and $ORAWEB_HOME/admin/classes

So I do this:

setenv CLASSPATH .:/u01/app/oracle/product/4082/ows/4.0/classes:/u01/app/oracle/product/4082/ows/4.0/admin/classes

Then I write my java file:

command% cat cs__0202.java
// cs 'core servlets and jsp' by m.hall, sun
// demo code by chuck williams 2001 dec
// listing 2.2 helloworld cs__0202.java

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

public class cs__0202 extends HttpServlet {
  public void doGet(HttpServletRequest request, HttpServletResponse response)
  throws ServletException, IOException {
    PrintWriter out = response.getWriter();
    out.println("Hello WWW");
  }
}


Then I go to compile but get errors:

command% javac cs__0202.java
cs__0202.java:6: Package javax.servlet not found in import.
import javax.servlet.*;
       ^
cs__0202.java:7: Package javax.servlet.http not found in import.
import javax.servlet.http.*;
       ^
cs__0202.java:9: Superclass HttpServlet of class cs__0202 not found.
public class cs__0202 extends HttpServlet {
                              ^
3 errors



Why?

Chuck Williams
[EMAIL PROTECTED]

Reply via email to