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:

  1. 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.
  2. Run the installer and point it to the directory where JDK/JRE is installed.
  3. 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
  4. 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:

  1. Download JAI 1.1.3 choosing the appropriate architecture:

    1. i586 for 32-bit systems
    2. amd64 for 64-bit ones (even if using Intel processors)
  2. Extract the file into a temporary directory.

  3. Move JAR files to the JDK/JRE lib/ext folder.

  4. 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:

    1.    $ 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_
  5.  

  6. Download JAI Image I/O 1.1, choosing the appropriate architecture:

    1. i586 for the 32-bit systems
    2. amd64 for the 64-bit ones (even if using Intel processors)
  7. Extract the file into a temporary directory.

  8. Move JAR files to the JDK/JRE lib/ext folder.

  9. 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的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程