Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 91383 invoked from network); 13 Apr 2005 14:09:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Apr 2005 14:09:55 -0000 Received: (qmail 73523 invoked by uid 500); 13 Apr 2005 14:08:59 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 73495 invoked by uid 500); 13 Apr 2005 14:08:59 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 73481 invoked by uid 99); 13 Apr 2005 14:08:59 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,FORGED_RCVD_HELO,HTML_40_50,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from host-141-116-58-92.ptr.hqda.pentagon.mil (HELO dadc011.hqda.ds.army.mil) (141.116.58.92) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 13 Apr 2005 07:08:57 -0700 Received: by host-141-116-58-92.ptr.hqda.pentagon.mil with Internet Mail Service (5.5.2657.72) id ; Wed, 13 Apr 2005 10:08:52 -0400 Message-ID: From: "Samara, Fadi N Mr ACSIM/ASPEX" To: 'Tomcat Users List' Subject: RE: class path (UNCLASSIFIED) Date: Wed, 13 Apr 2005 10:08:49 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C54032.50D75940" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C54032.50D75940 Content-Type: text/plain Classification: UNCLASSIFIED Caveats: NONE I am sorry, but how are you compiling your class ? Are you using any IDE (i.e Eclipse, Jdeveloper) ? -----Original Message----- From: S M [mailto:iwantajavaid@yahoo.com] Sent: Wednesday, April 13, 2005 10:07 AM To: Tomcat Users List Subject: RE: class path (UNCLASSIFIED) The same as before. ---------------------------------------- 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 ----------------------------------------- "Samara, Fadi N Mr ACSIM/ASPEX" wrote: Classification: UNCLASSIFIED Caveats: NONE What errors are you getting again ? -----Original Message----- From: S M [mailto:iwantajavaid@yahoo.com] Sent: Wednesday, April 13, 2005 9:47 AM To: Tomcat Users List; Jason Bainbridge Subject: Re: class path Hi These are the env. variables that I have set explicitly for tomcat 4.1 installation lJAVA_HOME = C:\java\bin lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= ".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_ HOME%\lib\j2ee.jar;" I have the path =C:\java\bin; when i installed J2sdk1.4.2_06 These being the variables I am still getting that error log where the compiler cannot locate the servlet pakages. Hope you can assit further. Thanks. Jason Bainbridge wrote: On Apr 12, 2005 3:39 PM, S M wrote: > sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as >mentioned and yes it shows me the CLASSPATH as listed below ".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_ HOME%\lib\j2ee.jar;" > > where ";C:\javacode" had the source code. Have you explicityly set CATALINA_HOME as well? Does it have spaces in it? If so surround it with double quotes or move it to a path with no spaces. I don't think having servlet.jar and j2ee.jar in the same classpath is a good idea either. Regards, -- Jason Bainbridge http://kde.org - webmaster@kde.org Personal Site - http://jasonbainbridge.com --------------------------------------------------------------------- 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 Classification: UNCLASSIFIED Caveats: NONE ------_=_NextPart_001_01C54032.50D75940--