title: Package com.sun.org.apache.xml.internal.security.utils.Base64 does not exist
body: <p>I am using NetBeans 7.0.1 and JDK 1.6 Update 24 and when importing the package <code>com.sun.org.apache.xml.internal.security.utils.Base64</code> to encode a password hash:</p>
  
  <pre><code>u.setPassword(Base64.encode(digest(password)));
  </code></pre>
  
  <p>When compiling however, I get the following error:</p>
  
  <pre><code>(omitted)\RegistrationController.java:8: package com.sun.org.apache.xml.internal.security.utils does not exist
  import com.sun.org.apache.xml.internal.security.utils.Base64;
  
  (omitted)\RegistrationController.java:94: cannot find symbol
  symbol  : variable Base64
  location: class RegistrationController
      u.setPassword(Base64.encode(digest(password)));
  2 errors
  </code></pre>
  
  <p>I have read several other questions regarding the same problem but all deal with packages that are not part of the JDK whereas this is (<code>rt.jar</code>). Code Assists works on the type and expanding the jar reveals both the source code and binary are in fact present as well.</p>
  
  <p>I have tried cleaning the project, rebuilding it, copying the source files over to a brand new Enterprise project and running NetBeans as Administrator, all to no avail. Any clue on how to solve this very much appreciated!</p>
  
  <p>Thanks!</p>