You need to place your file (i.e. MyFile) in an appropriate directory in the
servlet engine/application/web server. Most probably it will be the default
directory from where your servlets are run by the engine.

Choice of the editor depends upon the power of your machine.
For normal desktop machines of 300-400MHz + 128MB RAM Forte for Java is
ideal IDE; with minimum possible disk space requirements and all the
features of any enterprise level development tool. Most important (atleast
to me) is that you can get same help as is available in JavaDoc and it runs
over JDK v1.3 - latest implementation of Java/JVM/JRE by SUN. All these
things are downloadable from Sun's JavaSoft.com or Java.Sun.com.
Uninstalled/Installed Sizes are:
JDK v1.3      = about 30MB / about 60 MB
JavaDoc v1.3  = 22 MB / 105 MB
Fort4Java v2.0 (Internet Ed) = 22 MB / about 50 MB

regards,
Yousuf Khan.
------------- Orignal Message -------------
Date:    Mon, 26 Mar 2001 15:08:12 +0800
From:    Sol Christopher Gipulan <[EMAIL PROTECTED]>
Subject: Newbie...FileNotFoundException in servlet

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.

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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