Java

Moderators: zibadian
Number of threads: 7818
Number of posts: 18218

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: Java Servlets Posted by ABDUL HAYEE on 8 Jan 2007 at 10:02 AM
: : Dear sir,
: : I am facing problem , while trying to develop a web
: : application in Java.
: :
: : In the File: Myservlet.java
: : I imported packages
: : javax.servlet.* ; and javax.servlet.http.* l
: :
: :
: : Simple code of "Hello world " was in the body.
: :
: : When MyServlet.java filed was compiled ,
: : I recieved an arror message ,
: :
: : File : javax.servlet.* ; and
: : File : javax.servlet.http.* l
: :
: : not found.
: :
: : It looks like that these packages are not included in
: : Program : Java\jdk1.5.0_09\ ...
: :
: : Please help me in locating these packages , and
: : getting the first servlet work .
: :
: : Thanks.
: :
: : Abdul Hayee ,
: :
: : Plz note that the paths for
: : JAVA_HOME , PATH ,
: : CATALINA_HOME AND CLASSPATH
: :
: : are correct as per tutorial.
: :
: Here is the download page: http://java.sun.com/products/servlet/2.1/
:
........................................................................
Dear Sir,
I downloaded and installed the Java\Servlet2.1 \jswdk-1.0
As advised. When the start server file was run, it gave the message to provide the path
CLASSPATH = [jdk HOME]\lib\classes.zip ; CLASSPATH

Please note that , I have already apache-tomcat application for Servlet applications , and that has the same path.
In total there are 4 paths in use for JAVA applications in directory
< C >.

JAVA_HOME C:\Program Files\Java\jdk1.5.0_09

PATH C:\Program Files\Java\jdk1.5.0_09\bin

CATALINA_HOME C:\apachi-tomcat-5.5.20\apach-tomcat-5.5.20

CLASS_PATH C:\apachi-tomcat-5.5.20\apach-tomcat-5.5.20\common\ lib\servlet-api.jar ; C:\apachi-tomcat-5.5.20\apach-
tomcat-5.5.20\common\lib\jsp-api.jar ; . ;

Now do you suggest to replace the exixting classpath with the
jwsdk-1.0 file.
The system also informed that this path is compatible with jdk1.1.x application , while I have installed
jsdk1.5.0 . a few days back.

Could you please elaborate the procedure further.
Thanking you.
Abdul Hayee.




Thread Tree
ABDUL HAYEE Java Servlets on 7 Jan 2007 at 3:52 AM
zibadian Re: Java Servlets on 7 Jan 2007 at 6:47 AM
ABDUL HAYEE Re: Java Servlets on 8 Jan 2007 at 10:02 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.