Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I already have Java 1.6, but I need to test something with 1.5.

I have downloaded the .bin file from http://java.sun.com/javase/downloads/index_jdk5.jsp using the Sun Download Manager.

Now I want to create a deb file from this bin file:

$ fakeroot make-jpkg java_ee_sdk-5_01-linux.bin
Creating temporary directory: /tmp/make-jpkg.Zpm1Y7LbZ0
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk-doc.sh sun-j2sdk.sh

Detected Debian build architecture: i386
Detected Debian GNU type: i486-linux-gnu

No matching plugin was found.
Removing temporary directory: done

How can I fix the "No matching plugin was found." error?

Update

I downloaded jdk-1_5_0_22-linux-amd64.bin from the archive page and ran Linux installer.

It works fine.

share|improve this question
    
What are you wanting to test? –  Hugh Allen Apr 22 '10 at 12:29
    
I'm experiencing this error: stackoverflow.com/questions/2689691/…. I wanted to try it out on an older Java version. –  StackedCrooked Apr 22 '10 at 12:41
    
Why don't you use the java5 packages available for Ubuntu? –  goedson Apr 22 '10 at 15:32
1  
This issue with adding Java 5 to more recent versions of Ubuntu is a problem for those of us who want to contribute to the Android source code (source.android.com/source/download.html). Android source can't use Java 6 "because of incompatibilities with @Override" –  shambleh Dec 22 '10 at 14:02
add comment

closed as too localized by studiohack May 6 '12 at 4:16

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

3 Answers

If you are using Ubuntu version 9.04 or earlier, you can install the sun-java5-jdk package.

apt-get install sun-java5-jdk

If you are using version 9.10 or later you may be out of luck as the package is no longer supported. You could install Ubuntu 9.04 in a virtual machine or try a workaround in one of the solutions here.

share|improve this answer
add comment

Simply executing the .bin file and updating your JAVA_HOME and PATH variables might work, depending on how your application accesses Java. You might also need to update the java, javac, etc. symlinks in /usr/bin/ if your application uses them directly.

share|improve this answer
    
@Downvoter: Care to comment? –  Hippo Sep 25 '11 at 14:04
add comment

I suggest to add hardy-update repository and install package sun-java5-jre. Here are instructions.

Don't do any upgrades. Disable that repository after you install sun-java5-jre.

Note, that this package is in both hardy and hardy-updates repositories, but you want the one from hardy-updates (it has important fixes).

Also note, that hardy (server) release is the only still supported release which has java5 package.

share|improve this answer
add comment

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