OpenNMS / jrobin

GNU Lesser General Public License v2.1
17 stars 12 forks source link

Compilation error under Ubuntu Linux with OpenJDK 7 #1

Open moonese opened 11 years ago

moonese commented 11 years ago

It seems that there are sun package dependency in jrobin code, could this be fixed so it will compile on more version of JDKs?

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jrobin: Compilation failure: Compilation failure: [ERROR] /home/zhout/Studio/os/jrobin/src/org/jrobin/graph/ImageWorker.java:[21,31] error: package com.sun.image.codec.jpeg does not exist [ERROR] /home/zhout/Studio/os/jrobin/src/org/jrobin/graph/ImageWorker.java:[22,31] error: package com.sun.image.codec.jpeg does not exist [ERROR] /home/zhout/Studio/os/jrobin/src/org/jrobin/graph/ImageWorker.java:[23,31] error: package com.sun.image.codec.jpeg does not exist [ERROR] /home/zhout/Studio/os/jrobin/src/org/jrobin/graph/ImageWorker.java:[183,12] error: cannot find symbol [ERROR] class ImageWorker [ERROR] /home/zhout/Studio/os/jrobin/src/org/jrobin/graph/ImageWorker.java:[183,39] error: cannot find symbol [ERROR] class ImageWorker [ERROR] /home/zhout/Studio/os/jrobin/src/org/jrobin/graph/ImageWorker.java:[184,12] error: cannot find symbol [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] child exited with value 1

moonese commented 11 years ago

There is also someone else asking the same problem in stackoverflow, see links as below: http://stackoverflow.com/questions/1906673/import-com-sun-image-codec-jpeg