Hey!

Hari, Please shut off your HTML for your messages to this E-list.  Just
send text.

Okay, I have some things for you to try.

You say "Am able to compile a servlet using javac when invoked from the
DOS prompt".  Good.

I don't know what WinEdit is but you can just edit and your Java
save-source with it.  Go to a system prompt, run javac.

I suspect what is going wrong with WinEdit is that it does not set up
your environment correctly. The error your getting say so.

You say, "placed the class file inside the servelts directory of the
java websrver. and am not able to accesss the servelet".

I can only come up with this question.  Have you a package mypackage in
the first line of you source?  If so then you must use the Java
directory structrue for placing you servlet, i.e.,
servlets->mypackage->MyServlet as opposed to servlets->MyServlet.

Hope this helps.

Danny Rubis




Hari wrote:

> Hello, Am a beginner in Java Servlets development. I installed JSDK
> 2.1 and am using JDK1.2.1. Now i face a problem in running the
> servlets. The problem might be with the CLASSPATH. Am able to compile
> a servlet using javac when invoked from the DOS prompt. When the same
> source program is compiled using an editor like WinEdit, which uses
> the same javac, it show compilation error: Package javax.servlet not
> found in import.import javax.servlet.*; And also, when i compiled it
> and placed the class file inside the servelts directory of the java
> websrver. and am not able to accesss the servelet.Please help ( Am
> getting the html page when i connect to the server at
> 8080) Thanks,Hari [EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to