on 2005 Jul 29 3:56 PM
HI,
FileReader f =new FileReader("D:
New Folder
file.txt");
i'm getting the exception java.io.FileNotFoundException: D:\New Folder\file.txt (The system cannot find the path specified)
But it is working in core java execution..
what is syntax to give filestructure for fileReader();
please help in this.
Regards,SenthilNathan.
Hi,
You are getting this exception because the file is being searched in the server when it is deployed(Using Web Dynpro).But when you are trying it in core java it searches for the file in the local system.
Regards,
Vijith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Remember that your Web Dynpro runs on the server, so it tries to read that file from the server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Senthil,
Is the "D" drive mapped from a network drive?
From webdynpro application if you are trying to access a file in the network then you will get the FileNotFound exception. (Eventhough the network path is mapped).
Regards,
Santhosh.C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.