Skip to content

Latest commit

 

History

History
67 lines (49 loc) · 1.4 KB

File metadata and controls

67 lines (49 loc) · 1.4 KB

Building from Source

Prerequisites

  • JDK 17+
  • Maven 3.9+
  • Windows: Visual Studio 2019+ or C++ Build Tools

Build

Windows

compile.bat
mvn clean package

The build script compiles the native C++ library (build/fasttheme.dll) and Maven packages it into the root of the JAR under native/fasttheme.dll.

Installation

JitPack (Recommended)

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.github.andrestubbe</groupId>
        <artifactId>FastTheme</artifactId>
        <version>0.1.6</version>
    </dependency>
    <dependency>
        <groupId>com.github.andrestubbe</groupId>
        <artifactId>fastcore</artifactId>
        <version>0.1.0</version>
    </dependency>
</dependencies>

Gradle (JitPack)

repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation 'com.github.andrestubbe:FastTheme:0.1.6'
    implementation 'com.github.andrestubbe:fastcore:0.1.0'
}

Download Pre-built JAR

See Releases Page

Troubleshooting

JNI UnsatisfiedLinkError

If you get UnsatisfiedLinkError, ensure that FastCore is present on the classpath, as it automatically extracts and loads the embedded native/fasttheme.dll at runtime.