hi
check your class path ,
i have a bat file like this
path=c:\jdk1.1.6\bin;c:jsdk2.0\bin;%path%;
Set
classpath=c:\jdk1.1.6\lib;C:\jdk1.1.6\lib\CLASSES111.zip;c:\jsdk2.0\lib\jsdk.jar;%classpath%;
So i write and compile my servlets from both
C: and c:jsdk2.0\bin
after you genrate class file ,copy this class file
to dir of you web server,it be enough
I am working on win platform and my webserver's are
IIS and NES3.7
(http://localhostname/servlet/yourservletname)
Regards
Chaitra Kumar.v

--- akashmaheshwari <[EMAIL PROTECTED]> wrote:
> hi ALL
>    actually i had just started working
>    on servlets.
>     i m also using netscape enterprise
>     Server can u clarify some of the doubts
> 1.  where should i put javax and sun packages also
> my own classes that i had
> written
>     in Server  so that i can compile my
> servlets.java(kept in directory
> /plugins/java/servlets/)
>     files directly so that resulting *.class files
> remain directory
>
> 2. in my servlet i want to read from a .html file
> and write in to browser
>
>
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
> public class ShowServlet extends HttpServlet {
> public void doGet (HttpServletRequest req,
> HttpServletResponse res)
> throws ServletException, IOException
>     {
>         res.setContentType("text/plain");
>         ServletOutputStream out =
> res.getOutputStream();
>         out.println("akash");
>     BufferedReader inp=null;
>     String temp=new String();
>     try{
>    inp =new BufferedReader(new FileReader
> ("BrowserDataServlet.java"));/*
> BrowserDataServlet.java is in same diectory*/
>           }
>       catch (FileNotFoundException e)
>            { out.println(e.toString());
>            }
>           temp=inp.readLine();
>           try{
>             while(temp!=null)
>            {         //
> System.out.println(temp);
>              out.println(temp);
>              temp=inp.readLine();
>            }
>           }
>    catch(Exception e)
>     {}
>    }
> }
>
>
>
> but the servlet is giving FileNotFoundException .
> even if i m giving
> absolute path
> it is giving same exception
>
> can u please help me out
>
> Thanx in advance
> akash
>
>
___________________________________________________________________________
> 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
>

_________________________________________________________
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com

___________________________________________________________________________
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