Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to login to a machine ?  RSS feed

 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I have a set of images on a machine (windows machine) on my Intranet. Let me refer this machine as 'A'.
I have an application Hosted on Tomcat on another Machine (windows machine). Let me refer this machine as 'B'.
Now i have the Java code to retrieve the images from A to B. But as a pre-requisite i need to 'Login' to A before i run the java code. If i dont login, i get the below mentioned error:
java.io.FileNotFoundException: \\192.168.2.171\images\4d_H.gif (Logon failure: unknown user name or bad password).
Can I login using My java application rather than manually login ( I know the login credential to this machine). Is there any means to specify my Login credentials via my java application?
Please help me out.
Thanks,
Sajee Joseph
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!