Does anyone know a way using Java to find the username of the person
currently logged into Windows? I have thought that I could access the
Windows registry to find the current user, but unfortunately I can't see a
way to access and read the registry. I've had a dig through JavaDocs and the
web but haven't been able to find anything I can use.
I have found, but do not want to use, commercial classes and code. If
someone could just point me in the right direction it would be most
appreciated.
Thanks..
Adam.
|