Package com.sun.org.apache.xml.internal.security.utils.Base64 does not exist

后端 未结 3 821
时光说笑
时光说笑 2020-12-06 17:25

I am using NetBeans 7.0.1 and JDK 1.6 Update 24 and when importing the package com.sun.org.apache.xml.internal.security.utils.Base64 to encode a password hash:<

3条回答
  •  独厮守ぢ
    2020-12-06 17:57

    com.sun.* classes are not part of the Java API, and you shouldn't be relying on them. I would suggest using Apache Commons Codec to do Base64 encoding instead.

提交回复
热议问题