I try to convert docx to pdf using documents4j. At first, I try it on my local pc and it works perfectly. But when I upload it in weblogic, it says this error
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.
This can mean different things:
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.