CrossOver Support - Community Forums

Important Information These are community forums and not official technical support. If you need official support: Contact Us

CrossOver Linux
Discussion about CrossOver Linux

The following comments are owned by whoever posted them. We are not responsible for them in any way.

Back to Threads Reply to Thread

File associations suddenly don't work after installing openjdk-8? Run update-binfmts --disable jarwrapper

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

Please Note: This Forum is for non-application specific questions relating to installation/configuration of CrossOver. All application-specific posts to this Forum will be moved to their appropriate Compatibility Center Forum.

CrossOver Forums: the place to discuss running Windows applications on Mac and Linux

CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi01LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzA4NjEzODE4LCJjc3JmX3Rva2VuIjoiWmI3WUZad2JKSktlZ1poRyIsImdkcHIiOjB9