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-12-23线下车企门店如何实现线上线下融合?
- 2024-12-23鸿蒙Next ArkTS编程规范总结
- 2024-12-23物流团队冬至高效运转,哪款办公软件可助力风险评估?
- 2024-12-23优化库存,提升效率:医药企业如何借助看板软件实现仓库智能化
- 2024-12-23项目管理零负担!轻量化看板工具如何助力团队协作
- 2024-12-23电商活动复盘,为何是团队成长的核心环节?
- 2024-12-23鸿蒙Next ArkTS高性能编程实战
- 2024-12-23数据驱动:电商复盘从基础到进阶!
- 2024-12-23从数据到客户:跨境电商如何通过销售跟踪工具提升营销精准度?
- 2024-12-23汽车4S店运营效率提升的核心工具