jjnguy jjnguy - 2 years ago 64
Java Question

Java: Programatic Way to Determine Current Windows User

I see many similar questions, however I want to find the Username of the currently logged in user using Java.

Its probably something like:


But, I'm not quite sure.

Answer Source

You're actually really close. This is what you're looking for:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download