桟橋とシナトラの上で JODConverter を使用しようとしています。戦争でsinatraアプリケーションが展開されているJettyサーバーを起動するたびに。私はこの例外を受け取ります(多くのクラフトが削除されました):
java.lang.IllegalStateException: invalid officeHome: it doesn't contain soffice.bin:
私のsettings.ymlファイルには次のものがあります:
secret: Whatever_you_want_it_to_be
PARAMETER_OFFICE_PORT: 8100
PARAMETER_OFFICE_HOME: /Volumes/OpenOffice.org 3.3/OpenOffice.org.app/Contents/MacOS
PARAMETER_OFFICE_PROFILE: /Applications/OpenOffice.org.app/Contents/MacOS
最後の 2 つのディレクトリの内容は次のとおりです。
>ls '/Volumes/OpenOffice.org 3.3/OpenOffice.org.app/Contents/MacOS'
about.png crashrep intro.png sbase sdraw simpress soffice sofficerc testtool unopkg urelibs
boot straprc fundamentalrc resource scalc setuprc smath soffice.bin swriter unoinfo unopkg.bin versionrc
>ls /Applications/OpenOffice.org.app/Contents/MacOS
about.png crashrep intro.png sbase sdraw simpress soffice sofficerc testtool unopkg urelibs
bootstraprc fundamentalrc resource scalc setuprc smath soffice.bin swriter unoinfo unopkg.bin versionrc
両方の ls が「soffice.bin」を表示していることに注意してください。
アップデート:
私もこれを試しました:
> sudo chmod 777 '/Volumes/OpenOffice.org 3.3/OpenOffice.org.app/Contents/MacOS/soffice.bin'
Password:
chmod: Unable to change file mode on /Volumes/OpenOffice.org 3.3/OpenOffice.org.app/Contents/MacOS/soffice.bin: Read-only file system
また、office_home に 2 番目のディレクトリを使用してみました。その逆も同様です。運がない。