Posts

Showing posts from August, 2019

Maven - Create Executable Jar

Image
In this article we focus on how executable jar file is created in maven project. Usually we want to create java package and run it without specifying classpath of the main class that we want to execute. For this purpose we want to specify application entry point in the Jar manifest as follows. Manifest-Version: 1.0 Created-By: 1.7.0_06 (Oracle Corporation) Main-Class: MyPackage.MyClass So that we can execute our jar file in the terminal as follows. java -jar MyJar.jar Configuration We have to configure our pom.xml file and set packaging property as jar. <groupId>com.udara</groupId> <artifactId>tcp-client</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> In maven we can configure jar manifest using plugins. Here we talk about few plugins that we can use

Apache Tomcat - Brief Introduction

Image
What is Apache Tomcat? Apache Tomcat is an open source web sever and servlet container developed by apache software foundation. It implements Java servlet and Java Server Pages (JSP) specificartions from sun microsystems. What is Servlet? Servlet is is an app that runs on a server. Installing (1) Download and Install a Java SE Runtime Environment (JRE) (1.1) Download a Java SE Runtime Environment (JRE), release version 8 or later, from http://www.oracle.com/technetwork/java/javase/downloads/index.html (1.2) Install the JRE according to the instructions included with the release. You may also use a full Java Development Kit (JDK) rather than just a JRE. (2) Download and Install Apache Tomc

Popular posts from this blog

Flutter - Create Image Container with Round Corners and Splash Effect

AVR Analog Comparator

JAudioTagger - ID3 tagger library