Link to home
Start Free TrialLog in
Avatar of JTWolfman
JTWolfman

asked on

Username detection

I want to be able to detect the name of a user running a java application. This will not be running via applet in a browser.

           Please post any help for me
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JTWolfman
JTWolfman

ASKER

one more question, if you dont mind. How do i check if the username is a particular name?
String username = System.getProperty("user.name");
if (username.equals("JTWolfman"))
{
   // do whatever
}
thanks man, your a life saver
No worries, happy I could help.