I use NetBeans 7.0.1 and JDK 1.6 Update 24 and when importing the com.sun.org.apache.xml.internal.security.utils.Base64 package to encode the password hash:
u.setPassword(Base64.encode(digest(password)));
However, when compiling, I get the following error:
(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
I read a few other questions regarding the same problem, but they all relate to packages that are not part of the JDK, whereas this ( rt.jar ). Code Assists works on the type and extends the jar, and in fact, both the source code and the binary are present.
I tried to clean the project, rebuild it, copy the source files to a completely new Enterprise project and run NetBeans as an administrator, but all to no avail. Any clue on how to solve this is greatly appreciated!
Thanks!
java netbeans
Laurens
source share