Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to login to a machine ?  RSS feed

 
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
 
I love a woman who dresses in stainless steel ... and carries tiny ads:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!