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

Please Wait...
eyJjYXJ0IjowLCJ0enMiOi01LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNTcwNTQ3NzcwfQ==