Tagged: #jar

How to change the default port of Spring Boot application

By default, Spring Boot applications run on an embedded Tomcat via port 8080. In order to change the default port, you just need to modify server.port attribute which is automatically read at runtime by Spring Boot applications. In this tutorial, we provide the common ways of modifying server.port attribute. 1- application.properties Create application.properties file under src/main/resources and define server.port attribute...

How to run a jar file from command line

So you got an executable jar and you are wondering how to run it! . In this tutorial we define the different ways to run an executable jar through the windows command line. In case you don’t know what’s an executable jar, refer to our previous tutorial about creating executable jars in java. Throughout this tutorial, we consider that you’ve...

How to create an executable jar in java

A jar file is executable if it contains at least one entry point class with a main method. In this tutorial, we define the different ways to create an executable jar. 1. Eclipse export tool Let’s consider a typical hello world example as the following: Eclipse provides a tool to generate an executable jar out of any standalone application, to...