程序包com.sun.image.codec.jpeg不存在 问题的完美解决
来源:互联网 发布:怎么发淘宝优惠券赚钱 编辑:程序博客网 时间:2024/05/21 07:03
原文地址:http://my.oschina.net/zb0423/blog/86507
在使用Hudson进行打包的过程中,因为我们使用了一个pdf文件产生缩略图的功能,倒置添加的源码文件在maven下面编译失败,失败提示信息为:程序包com.sun.image.codec.jpeg不存在 后来查看这个类文件的位置在jre/lib/rt.jar
而我们设置的java_home下面的lib/dt.jar中没有这个文件,导致编译失败。通过配置maven-compiler-plugin插件可以解决此问题。
配置如下
全局变量的配置
1
<
java.home
>c:\Java\jdk1.7.0_05</
java.home
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<
plugin
>
<
groupId
>org.apache.maven.plugins</
groupId
>
<
artifactId
>maven-compiler-plugin</
artifactId
>
<
version
>2.3.2</
version
>
<
configuration
>
<
source
>${java-version}</
source
>
<
target
>${java-version}</
target
>
<
encoding
>UTF-8</
encoding
>
<
compilerArguments
>
<
verbose
/>
<
bootclasspath
>${java.home}\jre\lib\rt.jar;${java.home}\jre\lib\jce.jar</
bootclasspath
>
</
compilerArguments
>
</
configuration
>
</
plugin
>
配置中使用了两个jar包,因为我的hudson在编译的过程中除了报上面那个错误,还报了一个错。所以我添加了两个包。
如果还没解决 可以加qq: 471202412 ,一起讨论解决。
0 0
- 程序包com.sun.image.codec.jpeg不存在 问题的完美解决
- 程序包com.sun.image.codec.jpeg不存在 问题的完美解决
- 程序包com.sun.image.codec.jpeg不存在 问题的完美解决
- maven 程序包com.sun.image.codec.jpeg不存在 问题的完美解决
- 程序包com.sun.image.codec.jpeg不存在 问题的完美解决
- 程序包com.sun.image.codec.jpeg不存在 问题的完美解决
- 【转】程序包com.sun.image.codec.jpeg不存在 问题的完美解决
- 【转】程序包com.sun.image.codec.jpeg不存在 问题的完美解决
- 程序包com.sun.image.codec.jpeg不存在 问题的完美解决
- maven 程序包com.sun.image.codec.jpeg不存在 问题的完美解决
- 程序包com.sun.image.codec.jpeg不存在
- 程序包com.sun.image.codec.jpeg不存在
- 程序包com.sun.image.codec.jpeg不存在
- maven 程序包com.sun.image.codec.jpeg不存在的解决方案
- 程序包com.sun.image.codec.jpeg不存在 的解决办法
- maven 程序包com.sun.image.codec.jpeg不存在的解决方案
- 程序包com.sun.image.codec.jpeg不存在解决方法
- 【javaee】maven:程序包com.sun.image.codec.jpeg不存在
- 110. Balanced Binary Tree
- JS第十二天
- android 遇到的一个小问题
- 110. Balanced Binary Tree(1)
- 112. Path Sum
- 程序包com.sun.image.codec.jpeg不存在 问题的完美解决
- 116. Populating Next Right Pointers in Each Node
- 119. Pascal's Triangle II
- 136. Single Number
- hdu1520(树形dp入门)
- 浅谈STM32高级定时器TIM1的OSSR和OSSI、OISX,OISXN的作用和区别
- 关于S3C2440开发板Nand flash程序烧写和运行的一些理解
- 架构漫谈(一):什么是架构?
- 137. Single Number II