Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Extract logged in userid in Linux

843811Mar 5 2010 — edited Mar 5 2010
Hi,
I am trying to get the logged in user id in linux system using following code
NTSystem = new  com.sun.security.auth.module.NTSystem();
logEmail = NTSystem.getName();
However it generates following exception
java.lang.NoClassDefFoundError: com/sun/security/auth/module/NTSystem
at
...
...
I am sure this class is there in the classpath.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2010
Added on Mar 5 2010
4 comments
243 views