RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

What errors are you getting again ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
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 [EMAIL PROTECTED] 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 - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
The same as before.

C:\javacodejavac 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 [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

What errors are you getting again ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
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 - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
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

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
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:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac 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 [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED
Caveats: NONE

What errors are you getting again ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
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 - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
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



Re: class path (UNCLASSIFIED)

2005-04-13 Thread Anto Paul
On 4/13/05, Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
 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:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 10:07 AM
 To: Tomcat Users List
 Subject: RE: class path (UNCLASSIFIED)
 
 The same as before.
 
 C:\javacodejavac 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 [EMAIL PROTECTED] wrote:
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 What errors are you getting again ?
 
 -Original Message-
 From: S M [mailto:[EMAIL PROTECTED]
 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 - [EMAIL PROTECTED]
 Personal Site - http://jasonbainbridge.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 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
 
 

Better you copy CATALINA_HOME\common\servlet.jar to C: and set
CLASSPATH accordingly or pass CLASSPATH as an argument to javac.

-- 
Anto Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java 

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
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:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac 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:[EMAIL PROTECTED]
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 - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
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



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

Re: class path (UNCLASSIFIED)

2005-04-13 Thread Hassan Schroeder
S M wrote:
The same as before.
Not surpring if you haven't addressed the problems Jason already
pointed out --
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 
1) Reinstall Tomcat in `C:\tomcat_4.1` or something, with *no*
   spaces in the path.
2) Don't put servlet.jar and j2ee.jar in the same classpath, as
   you'll have duplicated classes...
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.
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your javac 
command, if you haven't done that yet. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java 

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
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:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac 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:[EMAIL PROTECTED]
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 - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
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



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



Re: class path (UNCLASSIFIED)

2005-04-13 Thread Larry Meadors
Oh, and spaces in your install directory (despite that being the default) is 
a bad idea.

On 4/13/05, Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
 
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 Try compiling the class by including the path for servlet.jar in your 
 javac command, if you haven't done that yet.
 
 -Original Message-
 From: S M [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 10:33 AM
 To: Tomcat Users List
 Subject: RE: class path (UNCLASSIFIED)
 
 I compiling it from the command prompt.
 The sourse code is in c:\javacode
 so i on cmd... i change directory to c:\javacodejavac HelloWorld.java
 
 Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
 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:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 10:07 AM
 To: Tomcat Users List
 Subject: RE: class path (UNCLASSIFIED)
 
 The same as before.
 
 C:\javacodejavac 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:[EMAIL PROTECTED]
 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.1installation
 
 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 - [EMAIL PROTECTED]
 Personal Site - http://jasonbainbridge.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 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
 
 -
 Yahoo! Messenger - Communicate instantly...Ping your friends today! 
 Download Messenger Now
 Classification: UNCLASSIFIED
 Caveats: NONE
 



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
tried that too... but it can't identify the path.

C:\javacodejavac -classpath C:\Program Files\Apache Group\Tomcat 
4.1\common\lib HellWorld.java

The system cannot find the file specified.

anyways.. now will reinstall as suggested 'without' spaces and will let you 
know..
thanks so far

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your javac 
command, if you haven't done that yet. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java 

Samara, Fadi N Mr ACSIM/ASPEX wrote:
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:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac 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:[EMAIL PROTECTED]
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 - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
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



-
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

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

I am pretty sure you need to SPECIFY servlet.jar, not just the directory where 
it resides

Fadi 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:01 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

tried that too... but it can't identify the path.

C:\javacodejavac -classpath C:\Program Files\Apache Group\Tomcat 
4.1\common\lib HellWorld.java

The system cannot find the file specified.

anyways.. now will reinstall as suggested 'without' spaces and will let you 
know..
thanks so far

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your javac 
command, if you haven't done that yet. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java 

Samara, Fadi N Mr ACSIM/ASPEX wrote:
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:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac 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:[EMAIL PROTECTED]
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 - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
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



-
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

Re: class path (UNCLASSIFIED)

2005-04-13 Thread BAO RuiXian
Hello,
S M wrote:
tried that too... but it can't identify the path.
C:\javacodejavac -classpath C:\Program Files\Apache Group\Tomcat 
4.1\common\lib HellWorld.java
 

Try use quotes instead of '' and '' to quote the class path.
Good luck.
Bao
The system cannot find the file specified.
anyways.. now will reinstall as suggested 'without' spaces and will let you 
know..
thanks so far
Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your javac command, if you haven't done that yet. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java 

Samara, Fadi N Mr ACSIM/ASPEX wrote:
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:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)
The same as before.

C:\javacodejavac 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:[EMAIL PROTECTED]
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 - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
 




Re: class path (UNCLASSIFIED)

2005-04-13 Thread Mieke Banderas
Hassan Schroeder said:

2) Don't put servlet.jar and j2ee.jar in the same classpath, as
you'll have duplicated classes...

Excuse a stupid question, but how do you use both libraries at once then?
2 JVMs? separation between Tomcat and the J2EE framework? Or can one use
2 classpaths in the same JVM somehow? 
I haven't made it to this level yet, so bear with me.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
I tried that too.. same problem...
anyways.. apart from that going as the suggestion of without spaces directory 
path... here is the modified thgs
CLASSPATH=.;c:\java;c:\tomcat\common\lib\servlet.jar
CATALINAHOME=c:\tomcat
JAVA_HOME and path remaing the same.
 
Now compiling
c:/javacodejavac -classpathc:\tomcat\common\lib\servlet.jar HelloWorld.java
it said - Access Denied
 

then compiling like 
c:/javacodejavac HelloWorld.java 
it gives same set of errors 
 
and then again compiling like 
c:/javacodejavac -classpathc:\tomcat\common\lib\servlet.jar HelloWorld.java
Windows gave a error saying 'javac' encountered an error.. please close.
 

and then closing and oping cmd again and 
then  compiling like 
c:/javacodejavac HelloWorld.java 
I got no errors... but also.. no class file created. :(
 
What do you have to say now?
 



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Caldarale, Charles R
 From: S M [mailto:[EMAIL PROTECTED] 
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac 
 -classpathc:\tomcat\common\lib\servlet.jar HelloWorld.java 
 it said - Access Denied

Where are these angle brackets coming from?  They should not be present.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: class path (UNCLASSIFIED)

2005-04-13 Thread Jay Burgess
Yes, doing a javac -h to receive help says  -classpath path.  But the
angle brackets from path are not meant to be included.

Jay
Vertical Technology Group
http://www.vtgroup.com/
 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:32 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

 From: S M [mailto:[EMAIL PROTECTED] 
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac 
 -classpathc:\tomcat\common\lib\servlet.jar HelloWorld.java 
 it said - Access Denied

Where are these angle brackets coming from?  They should not be present.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

Jay is correct, they should never be included as part of the specified path

Fadi 

-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:40 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: class path (UNCLASSIFIED)

Yes, doing a javac -h to receive help says  -classpath path.  But the 
angle brackets from path are not meant to be included.

Jay
Vertical Technology Group
http://www.vtgroup.com/
 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:32 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

 From: S M [mailto:[EMAIL PROTECTED]
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac
 -classpathc:\tomcat\common\lib\servlet.jar HelloWorld.java it said - 
 Access Denied

Where are these angle brackets coming from?  They should not be present.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Classification:  UNCLASSIFIED 
Caveats: NONE



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
tried that... now no errors anyway but there is no class file too???


Caldarale, Charles R [EMAIL PROTECTED] wrote:
 From: S M [mailto:[EMAIL PROTECTED] 
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac 
 -classpath HelloWorld.java 
 it said - Access Denied

Where are these angle brackets coming from? They should not be present.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-13 Thread David B. Saul
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

tried that too... but it can't identify the path.

C:\javacodejavac -classpath C:\Program Files\Apache Group\Tomcat 
4.1\common\lib HellWorld.java

  


Try use quotes instead of '' and '' to quote the class path.

Good luck.

Bao

The system cannot find the file specified.

anyways.. now will reinstall as suggested 'without' spaces and will let 
you know.. thanks so far

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your 
javac command, if you haven't done that yet.

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java

Samara, Fadi N Mr ACSIM/ASPEX wrote:
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:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac 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:[EMAIL PROTECTED]
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 - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now
  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
yes, i corrected that too...
not I am not getting any errors... but still the class file is not created... 
what do i do???


Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

Jay is correct, they should never be included as part of the specified path

Fadi 

-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:40 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: class path (UNCLASSIFIED)

Yes, doing a javac -h to receive help says  -classpath 
. But the angle brackets from 
are not meant to be included.

Jay
Vertical Technology Group
http://www.vtgroup.com/


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:32 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

 From: S M [mailto:[EMAIL PROTECTED]
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac
 -classpath HelloWorld.java it said - 
 Access Denied

Where are these angle brackets coming from? They should not be present.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Classification: UNCLASSIFIED 
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

It compiled successfully and no .class was generated ? This is weird.
Maybe it is something with where you're writing to.  If it compiled then
javac's job is done.

Is it a standalone server/PC or networked ? Do you have limited permissions
?

Fadi 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:44 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

tried that... now no errors anyway but there is no class file too???


Caldarale, Charles R [EMAIL PROTECTED] wrote:
 From: S M [mailto:[EMAIL PROTECTED]
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac
 -classpath HelloWorld.java
 it said - Access Denied

Where are these angle brackets coming from? They should not be present.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
see this... no errors... but no class file for the same 
 
C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar HelloWorld.java
C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar HelloWorld.java

C:\javacodejavac HelloWorld.java


David B. Saul [EMAIL PROTECTED] wrote:
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

tried that too... but it can't identify the path.

C:\javacodejavac -classpath 4.1\common\lib HellWorld.java

 


Try use quotes instead of '' and '' to quote the class path.

Good luck.

Bao

The system cannot find the file specified.

anyways.. now will reinstall as suggested 'without' spaces and will let 
you know.. thanks so far

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

Try compiling the class by including the path for servlet.jar in your 
javac command, if you haven't done that yet.

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java

Samara, Fadi N Mr ACSIM/ASPEX wrote:
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:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac 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:[EMAIL PROTECTED]
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 - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now
 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e

RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
it is netwroked...
thgs are behaving perfectly ok if i compile an ordinary class i.e without a 
servlet then why should it matter otherwise...
if i compiled it successfully there should be a class file.
 
Now I am doubting the message: Windows gave a error msg saying that 'javac.exe' 
faced an error, close. and since then, I am getting no errors when compling the 
servlet, also no class file?


Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

It compiled successfully and no .class was generated ? This is weird.
Maybe it is something with where you're writing to. If it compiled then
javac's job is done.

Is it a standalone server/PC or networked ? Do you have limited permissions
?

Fadi 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:44 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

tried that... now no errors anyway but there is no class file too???


Caldarale, Charles R wrote:
 From: S M [mailto:[EMAIL PROTECTED]
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac
 -classpath HelloWorld.java
 it said - Access Denied

Where are these angle brackets coming from? They should not be present.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
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

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

Try to reboot your machine, then compile again and see what happens.

Fadi 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:57 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

it is netwroked...
thgs are behaving perfectly ok if i compile an ordinary class i.e without a 
servlet then why should it matter otherwise...
if i compiled it successfully there should be a class file.
 
Now I am doubting the message: Windows gave a error msg saying that 'javac.exe' 
faced an error, close. and since then, I am getting no errors when compling the 
servlet, also no class file?


Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED
Caveats: NONE

It compiled successfully and no .class was generated ? This is weird.
Maybe it is something with where you're writing to. If it compiled then javac's 
job is done.

Is it a standalone server/PC or networked ? Do you have limited permissions ?

Fadi 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 11:44 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

tried that... now no errors anyway but there is no class file too???


Caldarale, Charles R wrote:
 From: S M [mailto:[EMAIL PROTECTED]
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac
 -classpath HelloWorld.java
 it said - Access Denied

Where are these angle brackets coming from? They should not be present.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
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



Antwort: RE: class path (UNCLASSIFIED)

2005-04-13 Thread Sebastian . Wiemer




Sorry maybe you already did that. I'm new to the Mailing-List.

But is it possible to have a look at the source code of you're
HelloWorld.java file ?

Is it possible that your HelloWorld class is packaged into a special
package and the
class file is generated under that directory, but not obviously in the root
directory
where you started the cmd 'javac HelloWorld.java' ?

regards
Sebastian




S M [EMAIL PROTECTED] schrieb am 13.04.2005 17:51:50:

 see this... no errors... but no class file for the same 

 C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java
 C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
 HelloWorld.java

 C:\javacodejavac HelloWorld.java


 David B. Saul [EMAIL PROTECTED] wrote:
 Try typing/copying the following at the prompt in the directory where the
 source code is for HelloWorld.java:

 javac -classpath C:\Program Files\Apache Group\Tomcat
 4.1\common\lib\servlet.jar HelloWorld.java

 if in fact this is where the servlet.jar file exists.



 -Original Message-
 From: BAO RuiXian [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 8:15 AM
 To: Tomcat Users List
 Subject: Re: class path (UNCLASSIFIED)


 Hello,

 S M wrote:

 tried that too... but it can't identify the path.
 
 C:\javacodejavac -classpath 4.1\common\lib HellWorld.java
 
 
 

 Try use quotes instead of '' and '' to quote the class path.

 Good luck.

 Bao

 The system cannot find the file specified.
 
 anyways.. now will reinstall as suggested 'without' spaces and will let
 you know.. thanks so far
 
 Samara, Fadi N Mr ACSIM/ASPEX wrote:
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 Try compiling the class by including the path for servlet.jar in your
 javac command, if you haven't done that yet.
 
 -Original Message-
 From: S M [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 10:33 AM
 To: Tomcat Users List
 Subject: RE: class path (UNCLASSIFIED)
 
 I compiling it from the command prompt.
 The sourse code is in c:\javacode
 so i on cmd... i change directory to c:\javacodejavac HelloWorld.java
 
 Samara, Fadi N Mr ACSIM/ASPEX wrote:
 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:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 10:07 AM
 To: Tomcat Users List
 Subject: RE: class path (UNCLASSIFIED)
 
 The same as before.
 
 C:\javacodejavac 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:[EMAIL PROTECTED]
 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

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Caldarale, Charles R
 From: S M [mailto:[EMAIL PROTECTED] 
 Subject: RE: class path (UNCLASSIFIED)
 
 see this... no errors... but no class file for the same 
  
 C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java
 C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java
 C:\javacodejavac HelloWorld.java

Is the HelloWorld class part of a package?  If so, javac will create a
directory tree under your current directory using the components of the
package name, and you class will be at the end of it.  If you still
can't find the output class, use -verbose with javac for more
information.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M

Hi AllLet me make things clearer now, forget all the prior mails and listen
I have two java files 'HelloWorld.java' and "Hello.java'I am attaching the code for the same.
Now on compiling HelloWorld.java, I still getting errors no matter what way I compile, the log is attached also.On compiling Hello.java with the classpath, it compiles properly. However gives error when copiled without the classpath mentioned explicitly.
I brought in confusion earlier saying that HelloWorld compiled and there was no class file, however when I had received the Windows error.. sayong 'javac.exe encountered error', what actually had happeded.. it deleted the contents of HelloWorld.java, keeping the file name intact. That is why when I compiled a blank file it compiled without errors and it illusioned as if the code was compiled and no class file was generated.

To answer what c:/javacode is then that is the place where the source code as .java files reside.
"Samara, Fadi N Mr ACSIM/ASPEX" [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED Caveats: NONETry to reboot your machine, then compile again and see what happens.Fadi -Original Message-From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 11:57 AMTo: Tomcat Users ListSubject: RE: class path (UNCLASSIFIED)it is netwroked...thgs are behaving perfectly ok if i compile an ordinary class i.e without a servlet then why should it matter otherwise...if i compiled it successfully there should be a class file.Now I am doubting the message: Windows gave a error msg saying that 'javac.exe' faced an error, close. and since then, I am getting no errors when compling the servlet, also no class file?"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]>wrote:Classification: UNCLASSIFIEDCaveats: NONEIt compiled successfully
 and no .class was generated ? This is weird.Maybe it is something with where you're writing to. If it compiled then javac's job is done.Is it a standalone server/PC or networked ? Do you have limited permissions ?Fadi -Original Message-From: S M [mailto:[EMAIL PROTECTED]Sent: Wednesday, April 13, 2005 11:44 AMTo: Tomcat Users ListSubject: RE: class path (UNCLASSIFIED)tried that... now no errors anyway but there is no class file too???"Caldarale, Charles R" wrote: From: S M [mailto:[EMAIL PROTECTED] Subject: RE: class path (UNCLASSIFIED)  Now compiling c:/javacodejavac -classpath HelloWorld.java it said - Access DeniedWhere are these angle brackets coming from? They should not be present.- ChuckTHIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended
 recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-Yahoo! Messenger - Communicate instantly..."Ping" your friends today!Download Messenger NowClassification: UNCLASSIFIEDCaveats: NONE-Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger NowClassification: UNCLASSIFIED Caveats: NONE  
Yahoo! Messenger - Communicate instantly..."Ping" your friends 
today! Download Messenger Now-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Ben Kim
tried that... now no errors anyway but there is no class file too

Maybe you can just copy the servlets.jar file in c:\javacode and run

  c:\javacodejavac -verbose -classpath servlet.jar HelloWorld.java

if a class file is made, then delete the class file, and do 

  c:\javacodejavac -verbose -classpath c:\javacode\servlet.jar
HelloWorld.java

and if it works, change whatever is in  ...  with the actual location. 

If it doesn't compile, could you post 

- result of running java -version
- source of HelloWorld.java

Regards,

Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas AM University






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: class path (UNCLASSIFIED)

2005-04-13 Thread David B. Saul
Quite frankly - this has nothing to do with Tomcat.

However, try this one more time - with or without the quotes as your path
does not require quotes,
only if the folder/directory names have spaces, and then search your system
for HelloWorld.class if
you do not see it in this directory. You also mentioned you were using a
batch file, or script file, to
compile. Do this from a command line from the directory you where the source
code is. Start from here 
and the rest of this is basic java compilation - not Tomcat :)

Additionally make a slight change to the command and specify the current
directory as part of the classpath.
I am guessing this is the HellowWorld.java servlet example included with
Tomcat.

javac -classpath .;c:\tomcat\common\lib\servlet.jar HelloWorld.java




-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:52 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)


see this... no errors... but no class file for the same 

C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java C:\javacodejavac -classpath
c:\tomcat\common\lib\servlet.jar HelloWorld.java

C:\javacodejavac HelloWorld.java


David B. Saul [EMAIL PROTECTED] wrote:
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

tried that too... but it can't identify the path.

C:\javacodejavac -classpath 4.1\common\lib HellWorld.java




Try use quotes instead of '' and '' to quote the class path.

Good luck.

Bao

The system cannot find the file specified.

anyways.. now will reinstall as suggested 'without' spaces and will let
you know.. thanks so far

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

Try compiling the class by including the path for servlet.jar in your
javac command, if you haven't done that yet.

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java

Samara, Fadi N Mr ACSIM/ASPEX wrote:
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:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac 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:[EMAIL PROTECTED]
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

RE: class path (UNCLASSIFIED)

2005-04-13 Thread David B. Saul
BTW - adding the PWD to the classpath should have no effect on your issue!

-Original Message-
From: David B. Saul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 2:31 PM
To: 'Tomcat Users List'
Subject: RE: class path (UNCLASSIFIED)


Quite frankly - this has nothing to do with Tomcat.

However, try this one more time - with or without the quotes as your path
does not require quotes, only if the folder/directory names have spaces, and
then search your system for HelloWorld.class if you do not see it in this
directory. You also mentioned you were using a batch file, or script file,
to compile. Do this from a command line from the directory you where the
source code is. Start from here 
and the rest of this is basic java compilation - not Tomcat :)

Additionally make a slight change to the command and specify the current
directory as part of the classpath. I am guessing this is the
HellowWorld.java servlet example included with Tomcat.

javac -classpath .;c:\tomcat\common\lib\servlet.jar HelloWorld.java




-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:52 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)


see this... no errors... but no class file for the same 

C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java C:\javacodejavac -classpath
c:\tomcat\common\lib\servlet.jar HelloWorld.java

C:\javacodejavac HelloWorld.java


David B. Saul [EMAIL PROTECTED] wrote:
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

tried that too... but it can't identify the path.

C:\javacodejavac -classpath 4.1\common\lib HellWorld.java




Try use quotes instead of '' and '' to quote the class path.

Good luck.

Bao

The system cannot find the file specified.

anyways.. now will reinstall as suggested 'without' spaces and will let 
you know.. thanks so far

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

Try compiling the class by including the path for servlet.jar in your 
javac command, if you haven't done that yet.

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java

Samara, Fadi N Mr ACSIM/ASPEX wrote:
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:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac 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:[EMAIL PROTECTED]
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

RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
thank you all ... i got it compiled.


David B. Saul [EMAIL PROTECTED] wrote:
BTW - adding the PWD to the classpath should have no effect on your issue!

-Original Message-
From: David B. Saul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 2:31 PM
To: 'Tomcat Users List'
Subject: RE: class path (UNCLASSIFIED)


Quite frankly - this has nothing to do with Tomcat.

However, try this one more time - with or without the quotes as your path
does not require quotes, only if the folder/directory names have spaces, and
then search your system for HelloWorld.class if you do not see it in this
directory. You also mentioned you were using a batch file, or script file,
to compile. Do this from a command line from the directory you where the
source code is. Start from here 
and the rest of this is basic java compilation - not Tomcat :)

Additionally make a slight change to the command and specify the current
directory as part of the classpath. I am guessing this is the
HellowWorld.java servlet example included with Tomcat.

javac -classpath .;c:\tomcat\common\lib\servlet.jar HelloWorld.java




-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:52 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)


see this... no errors... but no class file for the same 

C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java C:\javacodejavac -classpath
c:\tomcat\common\lib\servlet.jar HelloWorld.java

C:\javacodejavac HelloWorld.java


David B. Saul wrote:
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

tried that too... but it can't identify the path.

C:\javacodejavac -classpath 4.1\common\lib HellWorld.java




Try use quotes instead of '' and '' to quote the class path.

Good luck.

Bao

The system cannot find the file specified.

anyways.. now will reinstall as suggested 'without' spaces and will let 
you know.. thanks so far

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

Try compiling the class by including the path for servlet.jar in your 
javac command, if you haven't done that yet.

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java

Samara, Fadi N Mr ACSIM/ASPEX wrote:
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:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac 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:[EMAIL PROTECTED]
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

RE: class path (UNCLASSIFIED)

2005-04-12 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

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

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
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:\javacodejavac 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: class path (UNCLASSIFIED)

2005-04-12 Thread S M
I am using Tomcat 4.1 and that only has servlet.jar

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:Classification: 
UNCLASSIFIED 
Caveats: NONE

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

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
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:\javacodejavac 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-12 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

That's fine.  Make sure it is in your classpath. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:08 PM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I am using Tomcat 4.1 and that only has servlet.jar

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:Classification: 
UNCLASSIFIED
Caveats: NONE

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

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
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:\javacodejavac 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: class path (UNCLASSIFIED)

2005-04-12 Thread S M
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 [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

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

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
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:\javacodejavac 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-12 Thread Samara, Fadi N Mr ACSIM/ASPEX
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:[EMAIL PROTECTED] 
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 [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED
Caveats: NONE

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

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
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:\javacodejavac 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: class path (UNCLASSIFIED)

2005-04-12 Thread S M
I on WINXP and i have the below pointing to CLASSPATH and not CLASS_PATH
??

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] 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:[EMAIL PROTECTED] 
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:[EMAIL PROTECTED]
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:\javacodejavac 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
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

RE: class path (UNCLASSIFIED)

2005-04-12 Thread Ben Kim

I am using Tomcat 4.1 and that only has servlet.jar
C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import 
javax.servlet.*; ^

Depends on how you run javac, but if this works, then it's really the
classpath problem. Tomcat's classpath may be different from the one in
your command shell.

javac -cp c:\PATH_TO\common\lib\servlet.jar yourpackages\yourfile.java


HTH.

Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas AM University



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]