Create a fat Jar file – Maven Assembly Plugin
In this tutorial, we will show you how to create a fat/uber jar with Maven Assembly Plugin. Which means create a Jar together with its dependency Jars into a single…
The Java Archive Tool (JAR) Examples
Learn how to use JAR tool: 1 - Create a jar file, 2 - Update a jar file , 3 - Extract a jar file , 4 - List files…
How to add a manifest into a Jar file
In Java, you can use manifest file to define application’s entry point, adding classpath or package version for a JAR file. In this short tutorial , we will show you…
Maven – Create a fat Jar file – One-JAR example
In this tutorial, we will show you how to use Maven build tool, One-JAR plugin to create a single Jar together with its dependency Jars into a single executable Jar…
Maven – Exclude log4j.properties in Jar file
This example shows you how to use Maven to exclude the log4j.properties file from your Jar file. Please, DO NOT include the log4j.properties into the final Jar file, it will…
How to make a Java exe file or executable JAR file
In this tutorial, we will show you how to create a executable JAR – When you double click on it, it runs the defined main class in manifest file.
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…
How to check Tomcat version Installed
To find out the Tomcat version, find this file – version.sh for *nix or version.bat for Windows. This version.sh file is normally located in the Tomcat bin folder.
How to deploy Maven based war file to Tomcat
In this tutorial, we will show you how to use Maven-Tomcat plugin to package and deploy a WAR file to Tomcat, both in Tomcat 6 and 7. Libraries used :Maven…
What is Tomcat default administrator password ?
Is there or what is the default administrator user and password for Tomcat? Tomcat users are defined in the file – $TOMCAT_HOME/conf/tomcat-users.xml, by default, there is NO user, it means…