August 14, 2022

How to get the Tomcat home directory in Java

Is there a function in Java to retrieve the Tomcat (Catalina) home directory? Yes, Tomcat home directory or Catalina directory is stored at the Java System Property environment. If the Java web application is deployed into Tomcat web server, we can get the Tomcat directory with the following command: System.getProperty(“catalina.base”);

How to get the Tomcat home directory in Java Read More

How to check JDK version that installed on your computer

The Java development kit (JDK) contains tools for Java development, and the Java Runtime Environment (JRE) contains a JVM to convert byte code .class to machine code, and execute it, in short, the JRE runs Java program. We can use javac -version to find out the version of the installed JDK. We can use java -version to find out the version of the installed JRE. The JDK and JRE versions can be different on the same computer. Multiple JDK and JRE versions are allowed on the same computer; it is better to find out which version is configured in the system classpath to run or compile the Java program.

How to check JDK version that installed on your computer Read More

How To Install Apache Tomcat 10 on Ubuntu 20.04

Apache Tomcat is a web server and servlet container that is used to serve Java applications. It’s an open source implementation of the Jakarta Servlet, Jakarta Server Pages, and other technologies of the Jakarta EE platform. In this tutorial, you’ll deploy Apache Tomcat 10 on Ubuntu 20.04. You will install Tomcat 10, set up users and roles, and navigate the admin user interface.

How To Install Apache Tomcat 10 on Ubuntu 20.04 Read More