title: Debian/Ubuntu Java 11 java-alternative
body: <p>I upgraded my debian to bionic and I have a problem with java.  It has upgraded my java to jdk11 which is causing problems with missing EE modules so I want to make jdk8 the default.  I've done:</p>
  
  <ul>
  <li>I've tried changing the java alternative to jdk8 and that works for /usr/bin/java but the tomcat8 script uses /usr/lib/jvm/default-java/bin/java and this is not updated with the java-alternative command.  </li>
  <li>I've tried uninstalling java 11 but apt keeps saying that it is not installed.</li>
  <li><p>I've tried setting JAVA_HOME in the tomcat script but that isn't working either.</p>
  
  <p>Any help would be appreciated.</p></li>
  </ul>
  
  <p>Cheers,</p>
  
  <p>Neil</p>