tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S M <iwantajav...@yahoo.com>
Subject RE: class path (UNCLASSIFIED)
Date Tue, 12 Apr 2005 20:20:34 GMT
I on WINXP and i have the below pointing to CLASSPATH and not CLASS_PATH
??

"Samara, Fadi N Mr ACSIM/ASPEX" <Fadi.Samara@hqda.army.mil> wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

What platform are you running under ?
Make sure your environment variable CLASSPATH points to whatever you
supplied below.
Not class_path if you are under WINXP or WIN2K . 

-----Original Message-----
From: S M [mailto:iwantajavaid@yahoo.com] 
Sent: Tuesday, April 12, 2005 4:12 PM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

yes it is
".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;"
where ";C:\javacode" had the source code.



"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
Classification: UNCLASSIFIED
Caveats: NONE

You will need to have servlet-api.jar in your class path. 

-----Original Message-----
From: S M [mailto:iwantajavaid@yahoo.com]
Sent: Tuesday, April 12, 2005 4:03 PM
To: tomcat-user@jakarta.apache.org
Subject: class path

Hi all,
I am a first time user of Tomcat.
I am able to see the Tomcat default page on http://localhost:8080/index.jsp
Now, I want to compile HelloWorld.java using JDK 1.4, the program does not
compile and fails with the following log
-----------------------------------------------------------------------
C:\javacode>javac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import
javax.servlet.*; ^
HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {

^
6 errors
----------------------------------------------------------------------------
---
as it is not able to locate the servlet pakages.
I have set the class_path as
".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;"
where ";C:\javacode" had the source code.

Please help to get this compiled.

Thanks in advance
S.




---------------------------------
Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------
Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now
Classification: UNCLASSIFIED 
Caveats: NONE



---------------------------------
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger
Now
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message