When you run your Java app from the command line, the application's working
directory is wherever you actually run the command "Java Hi" from.
However, on the web everything changes.  The working directory is the
working directory of your web server.
The following might give you a hand:
(See attached file: JVMInfo.jsp)
Robert


Guys,
��� When making a java application  if i need to read a file say Hello.txt
from a .java file known as Read.java i  donot need to specify a path if
both the files are in the same  directory.
Well i'm facing an amazing problem when i try to do  something similar
using jsp.
I'm importing a .class file say Hi.class into my  jsp page say Hello.jsp &
i hava file named Hello.txt, the contents of which  i read in the
Hello.class file.
But as in the case of a java application i'm not  specifying the path of
the Hello.txt file in the Hello.class file because both  of them are placed
in the same directory instead i'm just calling it in the  FileInputStream
Constructor as "Hello.txt".
But i'm getting a  FileNotFoundException.
Please explain to me why is it so & what way  can i call the file Hello.txt
from the Hello.class file.
Have a nice day.
With regards,
Sachin S.  Khanna.

=?iso-8859-1?Q?JVMInfo.jsp?=

Reply via email to