Invoke the following commands: update-alternatives -install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-10.0.1/bin/java" 1 Run this command to load the environment variables now: source /etc/profile.d/tomcat9Ĭonfigure the newly installed Oracle Java JDK as default on your system. Now, let’s create some environment variables nano /etc/profile.d/tomcat9Īdd the following lines to the file: export CATALINA_HOME="/usr/local/apache-tomcat-10.0.1"Įxport JAVA_HOME="/usr/lib/jvm/jdk-10.0.1"Įxport JRE_HOME="/usr/lib/jvm/jdk-10.0.1/jre" Go to and download the archive file: wget -O jdk-10.0.1_linux-圆4_Įxtract the tarball. In this tutorial, we are using Java version 10.01 ![]() Login to your Debian 9 VPS via SSH as user root ssh -p7022 apt update You need to have Java version 8 or higher installed on your system to run Tomcat 9. You can either install Oracle JDK or OpenJDK. ![]() Tomcat requires Java JDK to be installed on the machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |