Image

Windows user name?

Hi!

My question is: Can I get the windows name of the client?

I want to avoid creating a login page in my java application, but I need to know who is using the application.

I tried String username = System.getProperty("user.name"); and it works locally, but when the application is on the server, I get 'SYSTEM' back.

Any ideas?

Thanks