There is a decent little guide on this page, check out the section on javac and its usage

https://www.ntu.edu.sg/home/ehchua/programming/howto/JDK_HowTo.html#Set-JAVA_HOME


Robert Dinse wrote:

     Ok, I deleted Java 11 and installed jdk-8, however tomcat8 will now not
start with the error:

 No JDK or JRE found - Please set the JAVA_HOME variable or install the default-jdk package

     I have JAVA_HOME set but apparently when tomcat8 is started by systemd
it does not see it.

     If I install default-jdk package, it re-installs jdk11 and sets it as
the default.  How do I set the default to jdk8?

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-  Eskimo North Linux Friendly Internet Access, Shell Accounts, and Hosting.
   Knowledgeable human assistance, not telephone trees or script readers.
 See our web site: http://www.eskimo.com/ (206) 812-0051 or (800) 246-6874.



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Reply via email to