Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrieve network username 1

Status
Not open for further replies.

TGJ

Programmer
Jan 31, 2005
64
CA
Hello, I am wondering if anyone out there knows if there is a library that can be used to retrieve the network username in a Java application. Thanks.
 
[I'm guessing you are on Win32]

You can get the name of the *logged in* user by doing :

String loggedInUserName = System.getProperty("user.name");

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top