Getting username of user who has logged into system without using System.ge

I need to get the user name of a user who has logged into a system.Can I achieve this without using System.getProperty("user.name");
[146 byte] By [jaaya] at [2007-11-26 19:10:55]
# 1
In pure Java, unlikely. Why do you need this?
mlka at 2007-7-9 21:07:26 > top of Java-index,Java Essentials,New To Java...
# 2
> I need to get the user name of a user who has logged> into a system.> Can I achieve this without using> System.getProperty("user.name");Not with pure Java, no.Is there some good reason not to use the available property you already know
warnerjaa at 2007-7-9 21:07:26 > top of Java-index,Java Essentials,New To Java...
# 3
> I need to get the user name of a user who has logged> into a system.> Can I achieve this without using> System.getProperty("user.name");Is there a reason that you don't want to use that?Kaj
kajbja at 2007-7-9 21:07:26 > top of Java-index,Java Essentials,New To Java...
# 4
Since in one of my application this is not returning correct value, rather it is returning value from a file that was installed with the application
jaaya at 2007-7-9 21:07:26 > top of Java-index,Java Essentials,New To Java...
# 5
What OS?
kajbja at 2007-7-9 21:07:26 > top of Java-index,Java Essentials,New To Java...
# 6
> What OS?WindowsXP. I also had a look at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4448660
jaaya at 2007-7-9 21:07:26 > top of Java-index,Java Essentials,New To Java...
# 7
Well, fix the root problem. Nobody should be overriding the USERNAME environment variable.
warnerjaa at 2007-7-9 21:07:27 > top of Java-index,Java Essentials,New To Java...