Search code examples
javalinuxlinux-mint

Mint Linux - Downgrade Java to 1.5


Currently, I am running Mint Linux (Release 9). I need to downgrade Java from version 1.6 to 1.5, and have been trying to figure out how to go about this. So far, I've had no luck. The package manager doesn't seem to have it.

Does anyone have any suggestions?

Thanks,
- Chris


Solution

  • As you explained in your comments, you need JDK 5 because you are working on the source code of Android itself and the instructions say:

    Ubuntu Linux (64-bit x86)

    ... JDK 5.0, update 12 or higher.Java 6 is not supported, because of incompatibilities with @Override.

    You can do this:

    • Uninstall any Java that you got via the package system of your Linux distro
    • Download JDK 5 Update 22 for Linux
    • Run the JDK installer with sudo, install it wherever you like (for example in /opt or /usr/local)
    • Set your PATH environment variable to include the bin directory of the JDK