jQuery in Action, 2nd edition*
The moose likes I/O and Streams and the fly likes Writing Files to non access folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Writing Files to non access folder" Watch "Writing Files to non access folder" New topic
Author

Writing Files to non access folder

Jochen Rittmann
Greenhorn

Joined: Jun 20, 2009
Posts: 6
Hallo,

there is a J2EE-App (JDK 1.4 ! ) running. I wrote a little script, to export / copy data.



That is a snippet, to get the folder target path and create a File instance. When i try to access folder, i get

Logon failure: unknown user name or bad password

The J2EE-App is running under another user. The target path is in another domain and user. So how can i get access, with username and passwort, to the remote folder?

Thank you,
Jochen
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2854
    
  11

JDK 1.4, huh? Ugh. Anyway, which line is causing that error? You have two writers defined and haven't said what either one is writing to. Are they both files? Are they both the same file?

Are you trying to write to a remote system? If so, then JCIFS could help you.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Writing Files to non access folder