Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 773 Bytes

File metadata and controls

31 lines (21 loc) · 773 Bytes

Building FastWindow from Source

Prerequisites

  • JDK 17+Download
  • Maven 3.9+Download
  • Visual Studio 2022 — Community/Professional/Enterprise/BuildTools

Quick Build

# 1. Build native DLL first (Windows)
compile.bat

# 2. Build JAR
mvn clean package -DskipTests

Native DLL Build

The compile.bat script:

  • Auto-detects Visual Studio Build Tools.
  • Links jawt.lib and dwmapi.lib.
  • Uses native\FastWindow.def for JNI exports.
  • Outputs to src/main/resources/native/fastwindow.dll.

Troubleshooting

"Cannot find DLL" — Run compile.bat first.

"UnsatisfiedLinkError" — Ensure FastWindow.def contains all exported function names.