Subject: Problem Compiling JSP Servlet
billy_aplin I am new to JSP development and I am trying to compile a
billy_aplin simple servlet from the More Servlets and JavaServer
billy_aplin Pages. I am getting the error cannot resolve symbol
billy_aplin (see below), which is supposed to mean that I
Greetings,
I am new to JSP development and I am trying to compile a simple servlet from
the More Servlets and JavaServer Pages. I am getting the error cannot
resolve symbol (see below), which is supposed to mean that I do not have
my classpath setting correct, but I am fairly certain that the
Did you by any chance import the class in the first place ?
Like
import javax.servlet.ServletException ;
Billy Aplin wrote:
Greetings,
I am new to JSP development and I am trying to compile a simple
servlet from
the More Servlets and JavaServer Pages. I am getting the error cannot
resolve
Thanks for replying,
I don't think so, but I am really just using the example code provided in
the book. I am including the code below. Also, when I specified the
classpath at the command line, I was able to build it successfully:
This works: javac HelloServlet.java -classpath
This works: javac HelloServlet.java -classpath
c:\Tomcat\common\lib\servlet.jar
This doesn't: javac HelloServlet.java
Billy, the second line implies that you did not include the classpath to
servlet.jar, so that's why it is having problems
with javax.servlet.ServletException.
If you find it
variable in the first place?
Thanks
Billy
From: Kwok Peng Tuck [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Problem Compiling JSP Servlet
Date: Fri, 03 Oct 2003 09:47:43 +0800
This works: javac HelloServlet.java
attempt to compile, otherwise why
create the CLASSPATH variable in the first place?
Thanks
Billy
From: Kwok Peng Tuck [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Problem Compiling JSP Servlet
Date: Fri, 03 Oct 2003 09:47:43
Windows 2000.
Thanks
Billy
_
Share your photos without swamping your Inbox. Get Hotmail Extra Storage
today! http://join.msn.com/?PAGE=features/es
-
To
You can set the classpath variable in the system environment.
Settings-Control Panel - System - Advance(tab) - Environment Variables
I don't think you need to reboot for this to take effect.
Billy Aplin wrote:
Windows 2000.
Thanks
Billy
: Re: Problem Compiling JSP Servlet
Date: Fri, 03 Oct 2003 10:14:49 +0800
You can set the classpath variable in the system environment.
Settings-Control Panel - System - Advance(tab) - Environment Variables
I don't think you need to reboot for this to take effect.
Billy Aplin wrote:
Windows 2000
Billy Aplin wrote:
[snip]
my classpath setting correct, but I am fairly certain that the CLASSPATH
settings are correct:
CLASSPATH
.; c:\JavaDev; c:\Tomcat\common\lib\servlet.jar
I doubt that the reason might be the spaces among the individual paths.
Try to take the spaces out and see what
Compiling JSP Servlet
Date: Fri, 03 Oct 2003 05:45:56 +0300
Billy Aplin wrote:
[snip]
my classpath setting correct, but I am fairly certain that the CLASSPATH
settings are correct:
CLASSPATH
.; c:\JavaDev; c:\Tomcat\common\lib\servlet.jar
I doubt that the reason might be the spaces among
i have problem compiling a servlet; pls help out.
i have j2sdk1.3.1 in my 'path' and is installed alright.
i have tomcat 4.0.1 installed alright and many of the tests with the
'examples' seem to work ok.
when i try compiling a servlet.java src file, the following error (using
javac ... ) gets
- Original Message -
From: graghavan [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, January 24, 2002 2:04 PM
Subject: problem compiling a servlet
i have problem compiling a servlet; pls help out.
i have j2sdk1.3.1 in my 'path' and is installed alright.
i
thanks, Bo; it worked. :-)
graghavan
Bo Xu wrote:
- Original Message -
From: graghavan [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, January 24, 2002 2:04 PM
Subject: problem compiling a servlet
i have problem compiling a servlet; pls help out.
i
I put in catalina_home/common/lib/servlet.jar and it works fine.
At 02:04 PM 1/24/02 -0500, you wrote:
i have problem compiling a servlet; pls help out.
i have j2sdk1.3.1 in my 'path' and is installed alright.
i have tomcat 4.0.1 installed alright and many of the tests with the
'examples' seem
Try catalina_home/common/lib/servlet.jar
At 02:12 PM 1/24/02 -0500, you wrote:
- Original Message -
From: graghavan [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, January 24, 2002 2:04 PM
Subject: problem compiling a servlet
i have problem compiling
17 matches
Mail list logo