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


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:

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: /home/peter/.cxoffice/Microsoft (No such file or directory)
at Method)
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...