
The last codeblock has some parts that you'll need to edit if you are not installing my same version.
DEBIAN INSTALL OPENJDK 7 INSTALL
The first two codes help you install it if you had no GUI. In case somebody finds this thread because they are uninstalling Java so that they can install an Old Version, I have included a walk-through I found. So the above suggests that there is no java found of any version. So after reading the above ideas I went with: sudo apt-get remove openjdk*īash: /usr/bin/java: No such file or directory
DEBIAN INSTALL OPENJDK 7 FOR ANDROID
I came across this because I am working through an instructional book for android programming which wants to use a specific Java SE and JRE (8u121) and requests that all other java packages be removed before continuing with the installation. I also removed OpenJDK, which seemed to set it to "deinstall": # dpkg -get-selections | less | grep openjdk Nothing changes, the java-common package even still appears in the dpkg search.

I proceed to remove java-common, however when it finishes java is still installed and java -version still shows the same thing. There doesn't seem to be an easy way to search for packages in apt so I'm using dpkg to search for java-related packages: # dpkg -get-selections | less | grep java OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
