title: Unable to find class com.sun.security.auth.module.NTSystem.NTSystem on RDi 9.5 (64-bit) JRE 1.8
body: <p>I am able to check the supplied user is system Administrator or not on windows machine with JRE 1.6 as </p>
  
  <pre><code>String groups[] = (new com.sun.security.auth.module.NTSystem()).getGroupIDs();
  for (int i = 0; i &lt; groups.length; i++)
  {
      if ("S-1-5-32-544".equals(groups[i]))
      {
          return true;
      }
  }
  </code></pre>
  
  <p>Ref: <a href="http://www.rgagnon.com/javadetails/java-check-if-current-user-is-admin-(windows).html" rel="nofollow noreferrer">http://www.rgagnon.com/javadetails/java-check-if-current-user-is-admin-(windows).html</a> </p>
  
  <p>But this class <strong>NTSystem</strong> is not available on IBM RDi 9.5 (64-bit) JRE 1.8. 
  Even the complete package is not available i.e. </p>
  
  <blockquote>
    <p>com.sun.security.auth.*</p>
  </blockquote>
  
  <p>Any idea, How to do the above task in RDi 9.5 (64-bit) JRE 1.8??</p>