on 11-13-2007 7:48 AM
Hi ,
I have a requirement :
I want to write a text file into a remote machine(Which is not the machine where my Webdynpro application is deployed/ which is not the J2EE server)
[code]
FileWriter fil = new FileWriter(new File("
<RemoteMachineIP>/E$/PP/"+FilePath));
[/code]
through this statement I am getting the Exception:
java.io.FileNotFoundException:
<systemIP>\e$\PP\PP496.TXT(Logon failure: unknown user name or bad password)
How can I solve this.
It would be appreciable, if any one helps
Thanks
Smitha
Hai ,
when u want read or write or open the file in remote end or any pc u must serialize the class once u serialize the class every thing will be visilble to remote end
thanks & regards ,
venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can I do it using the same code ,
by making the destination folder(in remote machine) shared
and by giving full control permission to the folder?
Please help me
thanks
Smitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
E$ is a administrative Share.
Pl try to create a folder and share it with EveryOne full control.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I made the remote machine's folder shared and gave full permission.
So I can write to that, from a simple java application.
But when I try to do the same through WD, 'The network path was not found" error is coming.
Is it because , the remote machine is not accessible from the Machine where J2EE server resides?
please help
thanks
Smitha
Hi,
I can ping the remote machine from J2ee server .
But I was not able to access the shared folder?
<b>If the destination shared folder has the full permission,
then is it needed to supply uname and pwd through WD coding to access the remote shared folder?</b>
thanks a lot for your replies.
Thnaks
Smitha
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.