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
Please post any help for me
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
one more question, if you dont mind. How do i check if the username is a particular name?
String username = System.getProperty("user.n ame");
if (username.equals("JTWolfma n"))
{
// do whatever
}
if (username.equals("JTWolfma
{
// do whatever
}
ASKER
thanks man, your a life saver
No worries, happy I could help.
http://www.objects.com.au