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.

Reply to Thread Back to Threads

File associations suddenly don't work after installing openjdk-8? Run update-binfmts --disable jarwrapper
Peter Mørch
Peter Mørch
Posted 2015-09-27 21:40

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

~> 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

Please Wait...