Hi,
Just so the next guy can also find this:
My file associations for Microsoft Word have been working for years. Periodically, I've had to run:
sudo update-binfmts --disable **jar**
(perhaps this is the explanation: https://www.codeweavers.com/support/wiki/linux/faq/cxofficejavaassociation)
But with openjdk-8 installed, this needs to be:
sudo update-binfmts --disable **jarwrapper**
This was discovered because update-binfmts --display
showed:
~> update-binfmts --display
python2.7 (enabled):
package = python2.7
type = magic
offset = 0
magic = \x03\xf3\x0d\x0a
mask =
interpreter = /usr/bin/python2.7
detector =
cli (enabled):
package = mono-runtime
type = magic
offset = 0
magic = MZ
mask =
interpreter = /usr/bin/cli
detector = /usr/lib/cli/binfmt-detector-cli
jarwrapper (enabled):
package = <local>
type = magic
offset = 0
magic = PK\x03\x04
mask =
interpreter = /usr/bin/jarwrapper
detector = /usr/bin/jardetector
For later googlers, the symptoms: Today, running
CX_LOG=~/logname /opt/cxoffice/bin/cxstart --bottle "Microsoft Office 2007" ~/some/file.docx
Results in ~/logname showing:
java.io.FileNotFoundException: /home/peter/.cxoffice/Microsoft (No such file or directory)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:220)
at java.util.zip.ZipFile.<init>(ZipFile.java:150)
at java.util.zip.ZipFile.<init>(ZipFile.java:121)
at sun.tools.jar.Main.list(Main.java:1115)
at sun.tools.jar.Main.run(Main.java:293)
at sun.tools.jar.Main.main(Main.java:1288)
invalid file (bad magic number): Exec format error
Ubuntu 12.04
Crossover Linux 11.2.1