Skip to content

Building from source

Build the nativify CLI and GUI from source. For prerequisites (JDK, Maven, LLVM, a C/C++ compiler), see Installation.

# Windows — builds everything and copies to dist/
build.bat

# Linux / macOS
./build.sh

The build outputs to dist/ with ready-to-run launchers:

  • dist/bin/nativify · dist\bin\nativify.bat — the CLI tool
  • dist/bin/nativify-gui · dist\bin\nativify-gui.bat — the GUI

Options

build.bat --skip-tests
build.bat --platform linux-x86_64

Any extra flags are passed straight to Maven:

./build.sh -DskipNativeCompilation=true
build.bat -DskipNativeCompilation=true

Manual build (Maven)

# Always use clean install — not just compile
mvn clean install -Djavacpp.platform=<PLATFORM>

<PLATFORM> is the host platform you're building on, not the target you'll protect for. Supported hosts:

  • windows-x86_64
  • linux-x86_64
  • linux-arm64
  • macosx-x86_64

Next steps