- Java JDK 22+ (JDK 25 recommended)
- Visual Studio 2022 Build Tools (with C++ support)
- Maven 3.6+
Run the provided batch script to compile the C++ source into a native DLL:
compile.batThis script:
- Loads the Visual Studio x64 build environment.
- Compiles
native/FastGhostMouse.cppwith Direct2D, DirectComposition, and D3D11 support. - Copies the resulting
fastghostmouse.dllto thesrc/main/resources/native/directory for JAR inclusion.
Generate the project JARs using Maven:
mvn clean packageThis creates:
target/fastghostmouse-1.0.0.jar- Standard API JAR.target/fastghostmouse-1.0.0-jar-with-dependencies.jar- FatJAR containing the native DLL and the FastCore dependency.
You can run the included demo using the following command:
java -cp "bin;target\fastghostmouse-1.0.0-jar-with-dependencies.jar" "-Djava.library.path=." fastghostmouse.demo.Demo