Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

System.getProperty("user.name") gives me SYTEM as result

807588May 25 2009 — edited May 25 2009
Hi
I have a problem getting the computer logged user with:
System.getProperty("user.name");

I developed a web application where i should get the logged user and use it to retrieve further information stored in a database.
When I run the application on my pc System.getProperty("user.name") gives me the correct username (the username logged on th pc)

now i deployed the application on a windows server 2003 but the same instruction gives me "SYSTEM" as result.
I don't know why. I was logged in with a domain username on the pc...
can you help me please?
thanks

Edited by: gnorro on May 25, 2009 7:52 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 22 2009
Added on May 25 2009
6 comments
102 views