cli module (a pure Java application for world conversion) and the app module (an Electron-based frontend). This guide covers how to build both components from source.
Requirements
Before building Chunker, ensure you have the following installed:- Git - For cloning the repository
- Java 17 or higher - Required for compiling and running Chunker
- Gradle (Optional) - The project includes a Gradle wrapper (
gradlew), so a system-wide Gradle installation is not required
Cloning the Repository
First, clone the Chunker repository:Building the Project
Build with Gradle
Use the Gradle wrapper to build the entire project:This command will:
- Compile all source code
- Run the test suite
- Generate JAR files
- Package the application
On Windows, use
gradlew.bat instead of ./gradlewBuild Options
Skip Tests
If you want to build without running tests, append-x test to the build command:
Build CLI Only
To build only the CLI module without the Electron app:Build Native Packages
To create platform-specific native packages using jpackage:build/libs/packaged/.
Clean Build
To remove all build artifacts and start fresh:Building the Electron App
Theapp module provides a desktop interface for Chunker using Electron.
Build the App
- Build the CLI module via jpackage
- Install npm dependencies
- Package the Electron application
Project Structure
Chunker uses a multi-module Gradle project:Gradle Configuration
The project uses Gradle Kotlin DSL for build configuration:- Java Toolchain: Java 17
- Shadow JAR: Creates an uber-JAR with all dependencies included
- jpackage: Generates native executables for Windows, Linux, and macOS
- Node Plugin: Manages Node.js and npm for the Electron app (uses Node 24.13.0, npm 11.8.0)
Dependencies
Chunker also uses its own fork of a Java LevelDB implementation: leveldb-mcpe-javaTroubleshooting
Build fails with 'Java version' error
Build fails with 'Java version' error
Ensure you have Java 17 or higher installed and set as your If needed, update your Java installation or configure the Gradle toolchain.
JAVA_HOME:Permission denied when running gradlew
Permission denied when running gradlew
On Linux/macOS, make the Gradle wrapper executable:
Out of memory during build
Out of memory during build
The build process can be memory-intensive. Increase the heap size:
Next Steps
- Learn about testing your build
- Review contribution guidelines
- Explore the CLI usage documentation