Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm running Lubuntu on a netbook and I've installed Oracle's JDK. Everything seems to work fine. The only problem is that when the Oracle JDK updates, I get the following warning:

update-binfmts: warning: current package is oracle-java7, but binary format already installed by openjdk-6

I found this link: https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/328174 but it seems to be talking about something specific to java-6-openjdk. When I run update-binfmts --display I get the following output:

python2.7 (enabled):
     package = python2.7
    type = magic
      offset = 0
       magic = \x03\xf3\x0d\x0a
    mask = 
 interpreter = /usr/bin/python2.7
    detector = 
jar (enabled):
     package = openjdk-6
    type = magic
      offset = 0
       magic = PK\x03\x04
    mask = 
 interpreter = /usr/bin/jexec
    detector = 

I don't understand what this has to do with Python. How can I get rid of this warning?

EDIT:

Ok, I know more about update-binfmts now. I can see that there are two entries in there, one for Python and one for jar. I just need to change the jar entry as per the launchpad link. I'll do that as soon as I can and mark this solved if it works.

Thanx,

Brian

share|improve this question

1 Answer 1

up vote 7 down vote accepted

Remove old reference:

sudo update-binfmts --package openjdk-6 --remove jar /usr/bin/jexec

Add new one:

sudo update-binfmts --package oracle-java7 --install jar /usr/bin/jexec --magic PK\x03\x04
share|improve this answer
    
Sorry, I didn't understand how comments and answers worked before. Your answer worked perfectly for me. –  Brian.D.Myers Dec 5 '13 at 3:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.