try giving the absolute pathname of "MyFile" (e.g. "c:\directory\MyFile").

:^)
Ricky Y. Artigas
Analyst/Programmer
Information Technology Division
Easycall Communications Phils., Inc.
- Easycall Internet -
418 Arayat St., Mandaluyong City 1550, Philippines
Personal WAP Site: http://www.buzzed.co.uk/mobile/?rya
Company Website: http://www.easycall.com.ph
Tel.no: (+632) 5338001 ext.6574
Mobile:(+63) 0917-8951783
Pager:  141-002955
Email: [EMAIL PROTECTED]


> -------------------------------
> IMPORTANT NOTICE:

> This message (and any attachment hereto) may contain privileged and/or
> confidential information specific to EasyCall. If you are not the intended
> addressee indicated in this message, you may not copy or disseminate this
> message (or any attachment hereto) to anyone. Instead, please destroy this
> message (and any attachment hereto), and kindly notify the sender by reply
> email. Any information in this message (and any attachment thereto) that
> do not relate to the official business of EasyCall shall be understood as
> neither given nor endorsed by the company.
>
>
> -----Original Message-----
> From: Sol Christopher Gipulan [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, March 26, 2001 3:08 PM
> To:   [EMAIL PROTECTED]
> Subject:      Newbie...FileNotFoundException in servlet
> Importance:   High
>
> Hi to all.
>
> Before, accessing file in my JAVA program works but when I put the codes
> in
> a servlet a FileNotFoundException prompts me. I'm using JSDK 2.1 in
> testing
> the servlet.
>
> Here's the code:
>
>                 byte[] MyKey = null;
>                 try{
>                         FileInputStream solkey = new
> FileInputStream("MyFile");
>                         MyKey = new byte[solkey.available()];
>
>
> Because I'm new in the technology, can anyone suggest any tool in
> developing
> servlets (right now I'm just using notepad as my editor.)
>
> Any suggestions/comments are welcome. Thank you in advance for your help.
>
> Good day.
>
> __________________________________________________________________________
> _
> 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

___________________________________________________________________________
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