|
-
Mar 16th, 2008, 11:47 PM
#1
Thread Starter
PowerPoster
Login user name - for all platforms.
Hi all,
I want to find the user login name of the computer at the time. So I do this.
Code:
com.sun.security.auth.module.NTSystem NTSystemUser = new
com.sun.security.auth.module.NTSystem();
// NTSystemUser.getName();
But I know this is specific for Windows platform, not for the Linux....
Since Java true platform independent I want to write a code which work on every platform. Any suggestions.
Thanks.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|