• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Writing Files to non access folder

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
reply
    Bookmark Topic Watch Topic
  • New Topic