Search code examples
javalinuxintellij-ideainstallationjmf

Installation of Java Media Framework fails


I am failing to install JMF on my machine.

My setup is:

  • InteliJ-IDEA
  • Ubuntu 16.4
  • Java 8 (using open-jdk-amd64)

I have followed the instructions from oracle found here. All they say is to execute /bin/sh ./jmf-2_1_1e-linux-i586.bin. Which basically just runs the .bin file that they provide.

Nevertheless, during installation, I get the following error:

Unpacking...
tail: cannot open '+309' for reading: No such file or directory
Extracting...
./install.sfx.23041: 1: ./install.sfx.23041: cannot open ==: No such file
./install.sfx.23041: 1: ./install.sfx.23041: ==: not found
./install.sfx.23041: 3: ./install.sfx.23041: Syntax error: ")" unexpected
chmod: cannot access 'JMF-2.1.1e/bin/jmstudio': No such file or directory
chmod: cannot access 'JMF-2.1.1e/bin/jmfregistry': No such file or directory
chmod: cannot access 'JMF-2.1.1e/bin/jmfinit': No such file or directory
./jmf-2_1_1e-linux-i586.bin: 305: ./jmf-2_1_1e-linux-i586.bin: JMF-2.1.1e/bin/jmfinit: not found
/bin/cp: cannot stat 'JMF-2.1.1e/lib/jmf.properties': No such file or directory
Done.

It seems that the error is related to directories not existing, but I can't seem to find the solution.

Thank you in advance!


Solution

  • The problem is in this line of that .bin file:

    tail +309 $0 > $outname
    

    It seems it's missing -n option, as it's needed to get last 309 lines of output, you'll need to change it to:

    tail -n +309 $0 > $outname
    

    To do that you can edit it with vim providing -b (for binary) option:

    vim -b jmf-2_1_1e-linux-i586.bin 
    

    Source: bugs.launchpad.net/ubuntu/+bug/104511/comments/7