HIPI 编译失败:找不到 com.sun.image.codec.jpeg.JPEGDecodeParam 的 class 文件

HIPI compile fail: class file for com.sun.image.codec.jpeg.JPEGDecodeParam not found

我在 Ubuntu 14.04 上使用 Hadoop 2.6.0 上的 ant 编译 HIPI 框架并收到此错误:

Buildfile: /home/jinjunho/hipi/src/build.xml

setup:

test_settings:

all:
    [javac] Compiling 23 source files to /home/jinjunho/hipi/lib
    [javac] /home/jinjunho/hipi/src/hipi/image/io/MetadataReader.java:34: error: cannot access JPEGDecodeParam
    [javac]         return JpegMetadataReader.readMetadata(_ubis);
    [javac]                                  ^
    [javac]   class file for com.sun.image.codec.jpeg.JPEGDecodeParam not found
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 error

BUILD FAILED /home/jinjunho/hipi/src/build.xml:25: Compile failed; see the compiler error output for details.

Total time: 1 second

从互联网上我发现 java7 中没有包含上述软件包(..真的吗?)。这个问题有什么解决办法吗?或者我真的必须用 java 6 重新编译它吗?

如果可以的话,我想用java7编译它。任何建议或解决方案将不胜感激。

(ps。我从网上找到了一个解决方案,它使用了 javac 的“-XDignore.symbol.file”选项,但没有用)

对于一些可能和我有同样问题的人来说,这只是 Java 版本问题-HIPI 必须使用 Java 1.6

编译

我想我可以制作更高版本的Java来编译HIPI,但我没有尝试过。而是直接使用了源码包中的hipi jar文件,没有自己编译源码