ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

Asponse.words for java is limited with jdk's built-in image encoders/decoders.in order to impro

2022-03-07 15:04:12  阅读:256  来源: 互联网

标签:limited use encoders imageio amd64 lib JDK && jai


开发环境

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

 

标签:limited,use,encoders,imageio,amd64,lib,JDK,&&,jai
来源: https://www.cnblogs.com/bingru/p/15975888.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有