In order to install a development environment for an older version of Android, I need to have Java 6 installed. I already, however, have Oracle Java 7 installed on my system and would like to keep it that way.
How can I install Java 6 so that the java
and javac
commands will refer to it in a given directory (and its sub-directories,) without messing anything up with respect to Java 7 on the rest of my system?