GithubHelp home page GithubHelp logo

flightlesson / java-application-template Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 23 KB

I use this as a template when I start a new Java application

License: MIT License

Shell 39.30% Java 40.42% Makefile 20.28%

java-application-template's Introduction

This is a template for starting a new Java application.

Customization starts by:

  • Under src/main, rename "com/demo/myapp" to your package and MyApp.java to your main class.
  • Edit and rename the "myapp" application wrapper script. Change TRUNK, jarfilebasename, and mainclass.
  • Edit "pom.xml"; change <project><groupId>, <project><artifactId>, <properties><trunk> and <manifest><mainClass>.
  • Edit "Makefile"; change default values for MYAPP and JARFILE.nnn
  • Edit the renamed "MyApp.java" and add your application code.

To build the application using maven run "mvn package". Note that build artifacts get placed in "../maven-build-artifacts/myapp" instead of "target", which is maven's default: this is to avoid polluting the git-managed project directory with build artifacts. See pom.xml to change this behavior.

To build the application using make, run "make all" or "make install". "make all" simply runs 'mvn package'; "make install" creates the ../sandbox directory and installs there. The sandbox can be useful in distributing your application.

Use the renamed "myapp" script to start the application. Try running with the "+h" command line arg, then with the "-h" command line arg.

Enjoy!

java-application-template's People

Contributors

flightlesson avatar

Stargazers

Paweł Karczewski avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.