Asponse.words for java is limited with jdk's built-in image encoders/decoders.in order to impro
2022/3/7 17:15:15
本文主要是介绍Asponse.words for java is limited with jdk's built-in image encoders/decoders.in order to impro,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
开发环境
Aspose.words19.5
jkd 1.8.0_281
tomcat 8.5.65
问题word转pdf log报错但不影响程序运行
错误信息
Aspose.Words for Java is limited with JDK's built-in image encoders/decoders. In order to improve reading/writing quality use the following external graphics libraries: * ImageMagick - Download and install ImageMagick from https://imagemagick.org/script/download.php - Windows users will have to set up the path to ImageMagick via IM4JAVA_TOOLPATH or ProcessStarter.setGlobalSearchPath(myPath), e.g. IM4JAVA_TOOLPATH=C:\Program Files\ImageMagick-7.0.8-Q16 - Download im4java https://sourceforge.net/projects/im4java/files/ - Copy im4java-1.4.0.jar to CLASSPATH or copy to JDK_HOME/jre/lib/ext directory. * Java Advanced Imaging API - Download jai_codec and add it to application classpath https://mvnrepository.com/artifact/javax.media/jai_codec/1.1.3 - Download jai_core and add it to application classpath https://mvnrepository.com/artifact/javax.media/jai-core/1.1.3 - Download jai_imageio and add it to application classpath https://mvnrepository.com/artifact/javax.media/jai_imageio/1.1.1
解决方法
System Requirements | Aspose.Words for Java
How to Install JAI on Windows
Follow these steps to install native JAI and ImageIO on Windows:
- Download JAI 1.1.3. At the time of writing, only the 32-bit version of the installer is available, so if you use a JDK you need to download Jai-1_1_3-lib-windows-i586-jdk.exe and if you use a JRE you need to download Jai-1_1_3-lib-windows-i586-jre.exe.
- Run the installer and point it to the directory where JDK/JRE is installed.
- Download JAI Image I/O 1.1. At the time of writing, only the 32-bit version of the installer is available, so if you use a JDK you need to download jai_imageio-1_1-lib-windows-i586-jdk.exe and if you use a JRE you need to download jai_imageio-1_1-lib-windows-i586-jre.exe
- Run the installer and point it to the directory where JDK/JRE is installed
How to Install JAI on Linux
Follow these steps to install native JAI and ImageIO on Linux:
-
Download JAI 1.1.3 choosing the appropriate architecture:
- i586 for 32-bit systems
- amd64 for 64-bit ones (even if using Intel processors)
-
Extract the file into a temporary directory.
-
Move JAR files to the JDK/JRE lib/ext folder.
-
Move SO files to the JDK/JRE lib/amd64 folder.
For example, on a 64-bit Ubuntu system, steps 1-4 will look like this:
-
$ cd /tmp $ wget https://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-linux-amd64.tar.gz && \ gunzip -c jai-1_1_3-lib-linux-amd64.tar.gz | tar xf - && \ mv /tmp/jai-1_1_3/lib/*.jar $JAVA_HOME/jre/lib/ext/ && \ mv /tmp/jai-1_1_3/lib/*.so $JAVA_HOME/jre/lib/amd64/ && \ rm /tmp/jai-1_1_3-lib-linux-amd64.tar.gz && \ rm -r /tmp/jai-1_1_
-
-
-
Download JAI Image I/O 1.1, choosing the appropriate architecture:
- i586 for the 32-bit systems
- amd64 for the 64-bit ones (even if using Intel processors)
-
Extract the file into a temporary directory.
-
Move JAR files to the JDK/JRE lib/ext folder.
-
Move SO files to the JDK/JRE lib/amd64 folder.
For example, on a 64-bit Ubuntu system, steps 5-8 will look like this:
$ cd /tmp $ wget https://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-amd64.tar.gz && \ gunzip -c jai_imageio-1_1-lib-linux-amd64.tar.gz | tar xf - && \ mv /tmp/jai_imageio-1_1/lib/*.jar $JAVA_HOME/jre/lib/ext/ && \ mv /tmp/jai_imageio-1_1/lib/*.so $JAVA_HOME/jre/lib/amd64/ && \ rm /tmp/jai_imageio-1_1-lib-linux-amd64.tar.gz && \ rm -r /tmp/jai_imageio-1_1
这篇关于Asponse.words for java is limited with jdk's built-in image encoders/decoders.in order to impro的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-01后台管理开发学习:新手入门指南
- 2024-11-01后台管理系统开发学习:新手入门教程
- 2024-11-01后台开发学习:从入门到实践的简单教程
- 2024-11-01后台综合解决方案学习:从入门到初级实战教程
- 2024-11-01接口模块封装学习入门教程
- 2024-11-01请求动作封装学习:新手入门教程
- 2024-11-01登录鉴权入门:新手必读指南
- 2024-11-01动态面包屑入门:轻松掌握导航设计技巧
- 2024-11-01动态权限入门:新手必读指南
- 2024-11-01动态主题处理入门:新手必读指南