- JDK 17+ — Download
- Maven 3.9+ — Download
- Visual Studio 2022 — Community/Professional/Enterprise/BuildTools
# 1. Build native DLL first (Windows)
compile.bat
# 2. Build JAR
mvn clean package -DskipTestsThe compile.bat script:
- Auto-detects Visual Studio Build Tools.
- Links
jawt.libanddwmapi.lib. - Uses
native\FastWindow.deffor JNI exports. - Outputs to
src/main/resources/native/fastwindow.dll.
"Cannot find DLL" — Run compile.bat first.
"UnsatisfiedLinkError" — Ensure FastWindow.def contains all exported function names.