File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Writing Files to non access folder" Watch "Writing Files to non access folder" New topic

Writing Files to non access folder

Jochen Rittmann

Joined: Jun 20, 2009
Posts: 6

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,
Greg Charles

Joined: Oct 01, 2001
Posts: 2969

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:
subject: Writing Files to non access folder
It's not a secret anymore!