Either download or build the JNI DLL and dependent DLL files.
The JNI DLL requires the generated DLL files to be in your system PATH.
On Windows:
- fmt.dll (fmtd.dll in Debug mode)
- glfw3.dll
Temporary (Command Prompt):
set PATH=%PATH%;C:\path\to\dlls\folder
Temporary (PowerShell):
$env:PATH += ";C:\path\to\dlls\folder"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/dlls/folder
No need to run batch/bash files if you already installed gradle globally
.\gradlew.bat runMain
./gradlew runMain
./gradlew runMain --info
# For detailed build information
./gradlew clean runMain
# For clean build
This is almost plug and play, though OS dependent due to the JNI library. At the moment the system Path still needs to be updated.
.\gradelw.bat fatJar
java -Djava.library.path=./native -jar app/build/libs/app.jar
Windows, OpenJDK 22