1

I want my application to figure which user have started it (the application). I will need it to send a mail to this user.

Can it be done in java?

thanks.

Yosi199
  • 1,745
  • 4
  • 22
  • 47
  • maybe this thread will help you http://stackoverflow.com/questions/1126684/how-do-i-access-windows-credentials-from-java – Alfabravo Feb 21 '12 at 01:23

2 Answers2

3

Would System.getProperty("user.name") be good enough for you, or do you need more?

Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
2

yup, you can use NTSystem

northpole
  • 10,244
  • 7
  • 35
  • 58