Results 1 to 1 of 1
- 01-03-2011, 02:18 AM #1
Senior Member
- Join Date
- Feb 2009
- Posts
- 117
- Rep Power
- 0
setting classpath for java in ubuntu
I am trying to compile servlets and javac just won't recognize the http keyworkds
import java.io.*;
import javax.servlet.*; //error here
import javax.servlet.http.*; //error here
public class HelloWorld extends HttpServlet { //error here
public void doGet(HttpServletRequest request, //error here
HttpServletResponse response) //error here
throws ServletException, IOException { //error here
PrintWriter out = response.getWriter();
out.println("Hello World");
}
}
already have tomcat on my ubuntu system. in the etc/environment file, the classpath is already set and it is
CLASSPATH=.:$TOMCAT_HOME/lib/servlet-api.jar:$TOMCAT_HOME/lib/jsp-api.jar:$TOMCAT_HOME/lib
any help would be apprecicated, stuck with this one for 2 days already and I am very much clueless :confused:
:D
Similar Threads
-
mysql classpath ubuntu problem
By munish in forum JDBCReplies: 18Last Post: 08-22-2010, 01:55 AM -
starting java programming on ubuntu linux
By hmjsaumya in forum New To JavaReplies: 1Last Post: 01-23-2010, 06:28 AM -
setting path and classpath variables from batch file -
By manojsingh.manoj@gmail.co in forum Advanced JavaReplies: 1Last Post: 09-15-2009, 11:50 AM -
setting classpath
By ravikumar9 in forum New To JavaReplies: 2Last Post: 08-05-2009, 12:36 PM -
Setting classpath in Vista
By dawiz001 in forum New To JavaReplies: 2Last Post: 02-25-2009, 05:00 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks