example-hello-world

README - example-java-hello-world

Classic Java “Hello World!” (a la The Java Programming Language by James Gosling) built using Maven and a manifest file.

Build Instructions

You will need:

Clone the project and use Maven to build the java application.

$ mvn clean install

Notes

The project uses a Java manifest file to specify the Main class in the compliled jar.

Check out the manifest.txt file in the resources directory to see how it specifies the Main class.

Note how its referenced in the pom.xml file.

<archive>
    <manifestFile>src/main/resources/manifest.txt</manifestFile>
</archive>