1、问题?项目打包报错;

程序包com.sun.image.codec.jpeg不存在;

2、原因

尚不明确;由于jdk升级问题。才出现的,可能jdk6就不会出现;初步怀疑jdk的问题;

3、解决方案

通过配置maven-compiler-plugin插件可以解决此问题。

<plugin>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.8.0</version>
    <configuration>
        <source>1.8</source>
        <target>1.8</target>
        <encoding>UTF-8</encoding>
        <compilerArguments>
            <verbose />
            <bootclasspath>${java.home}\lib\rt.jar;${java.home}\lib\jce.jar</bootclasspath>
        </compilerArguments>
    </configuration>
</plugin>

程序包com.sun.image.codec.jpeg不存在 问题的完美解决

 

如果有帮助到你的话,请记得关注一波

博主强烈推荐:https://blog.csdn.net/persistencegoing/article/details/84376427

希望大家关注我一波,防止以后迷路,有需要的可以加群讨论互相学习java ,学习路线探讨,经验分享与java求职  

群号:721 515 304
 

相关文章:

  • 2021-07-09
  • 2021-06-03
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-01-10
猜你喜欢
  • 2021-12-03
  • 2022-02-04
  • 2021-12-13
  • 2021-05-13
  • 2021-05-20
  • 2021-04-19
相关资源
相似解决方案