错误截图:

项目中遇到的问题:IDEA  maven项目报错:程序包com.sun.image.codec.jpeg不存在

 

解决方法:在pom.xml文件中间加上以下代码:

项目中遇到的问题:IDEA  maven项目报错:程序包com.sun.image.codec.jpeg不存在

代码:

 <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.6.0</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                    <compilerArguments>
                        <verbose />
                        <bootclasspath>${java.home}/lib/rt.jar;${java.home}/lib/jce.jar</bootclasspath>
                    </compilerArguments>
                </configuration>
            </plugin>

 

相关文章:

  • 2021-10-14
  • 2021-07-06
  • 2021-12-13
  • 2021-12-15
  • 2022-12-23
  • 2022-01-01
  • 2021-04-04
猜你喜欢
  • 2021-05-22
  • 2021-04-18
  • 2021-11-15
  • 2021-10-21
  • 2022-12-23
  • 2021-11-18
相关资源
相似解决方案