A lightweight Java project template featuring a Makefile-based build system, standard folder structure, and .gitignore.
- Simple Makefile-based build system.
- Standard directory structure (
src,bin,doc). - Pre-configured
.gitignorefor Java, popular IDEs (IntelliJ, Eclipse, VS Code), OS files, and generated directories (bin/,docs/). - MIT Licensed.
- Navigate to the main page of this repository on GitHub.
- Click the green "Use this template" button (located near the top of the page).
- Select "Create a new repository".
- Choose an owner (your account) and a name for your new repository.
- Click "Create repository".
This will create a new repository in your account, pre-populated with all the files from this template. You can then clone it and start building.
Click here to create a new repository from this template.
Before you can use the Makefile, you must have the following tools installed on your system:
- GNU Make: The build tool used to run the commands in the
Makefile. - Java Development Kit (JDK): Required to compile (
javac) and run (java) the Java code.
src/: Place your.javasource files here.bin/: Compiled.classfiles will be placed here (created bymake compile).doc/: Generated Javadoc will be placed here (created bymake docs).
make allormake compile: Compiles all.javafiles fromsrc/intobin/.make run: Executes themainclass from thebin/directory (Assumes your main class is namedmain).make docs: Generates Javadoc documentation fromsrc/intodoc/.make clean: Removes all files from thebin/anddoc/directories.
NOTE: Open the Makefile in any text editor and change main to the name of your project's main / entry point Java file
This project is licensed under the MIT License.
Copyright (c) 2025 Thomas Kabalin.