java.lang.NoClassDefFoundError: Could not initialize class javax.media.jai.JAI

こ雲淡風輕ζ 提交于 2019-12-01 16:08:34

Finally it worked when I removed Geotiff jai-core-1.1.3.jar,jai-codec-1.1.3.jar and jai-imageio-1.1.jar files and added new class for jai-ext's gt-utility class files. I just copied from github and added to src of my project.gt-utility was the one which was missing. The jars were conflicting too.

You have to add the jai-core.jar to your classpath

Please follow the GeoTools setup instructions which say for the JAI :

Java Advanced Imaging Java Advanced Imaging is an image processing library allowing you to form chains of operations to process rasters in a manner similar to functional programming.

References:

http://java.net/projects/jai-core Download this Version of JAI

Java Advanced Imaging API 1.1.3 At the time of writing Oracle is migrating java projects around - try the following:

http://download.java.net/media/jai/builds/release/1_1_3/ http://download.java.net/media/jai/builds/release/1_1_3/INSTALL.html Download JAI for your JDK by clicking on the link for your platform:

Example: jai-1_1_3-lib-windows-i586-jdk.exe

Use the one click installer to install JAI into your JDK

Download JAI for your JRE by clicking on the link for your platform:

Example: jai-1_1_3-lib-windows-i586-jre.exe

Use the one click installer to install JAI into your JRE

(If you are working on linux you will of course need to choose the appropriate download)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!