Maven can't compile class which depends on rt.jar

前端 未结 2 1920
眼角桃花
眼角桃花 2021-02-19 02:32

CI-server (Hudson), for which I am responsible, builds Maven project. After the last commit, the build failed:

[INFO] -------------------------------------------         


        
2条回答
  •  不要未来只要你来
    2021-02-19 02:52

    The missing class seems to be JRE internal (as indicated in its namespace), and should not be referenced from your code. It is probably only available on specific platforms or JRE versions.

    Consider replacing it with another Base64 encoder class, e.g. one from the Apache Commmons Codec project.

    Java 8 update

    Java 8 finally introduced a Base64 class in the public part of the JDK: java.util.Base64.

提交回复
热议问题