0

我尝试使用documents4j将docx转换为pdf。起初,我在本地电脑上试了一下,效果很好。但是当我在weblogic中上传它时,它说这个错误

    com.documents4j.conversion.msoffice.MicrosoftWordBridge : Unable to run script: /tmp/1485771859333-0/word_start103185801.vbs java.io.IOException: Could not execute [cmd, /S, /C, ""/tmp/1485771859333-0/word_start103185801.vbs""] in /tmp/1485771859333-0.
4

1 回答 1

0

This can mean different things:

  1. The .NET runtime is not installed on the Weblogic server.
  2. You do not have rights to execute scripts via .NET on this server.

documents4j is a Java library but binds .NET commands and needs an MS Word installation. Also, make sure that you completed any MS Word Wizard that can appear right after installation of a new copy.

于 2017-01-31T08:30:49.277 回答