Tagged: #jar

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...