• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing Files to non access folder

 
Jochen Rittmann
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2984
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic