-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Eatgrapes edited this page Dec 29, 2025
·
3 revisions
This guide will help you integrate Live2D-JavaBinding into your project.
- Java 9 or higher: The library uses JPMS (Java Platform Module System) and APIs introduced in Java 9.
- OpenGL Context: You need a library to create a window and an OpenGL context. We recommend LWJGL 3, but any library that provides access to OpenGL bindings will work.
Since this library is not hosted on a public Maven repository, you must download the latest release and install it manually.
Go to the GitHub Releases page and download:
live2d-shared.jar-
live2d-native-[platform].jar(e.g.,live2d-native-windows-x64.jar)
You can install them into your local Maven repository:
mvn install:install-file -Dfile=live2d-shared.jar -DgroupId=dev.eatgrapes -DartifactId=live2d-shared -Dversion=1.0.0 -Dpackaging=jar
mvn install:install-file -Dfile=live2d-native-windows-x64.jar -DgroupId=dev.eatgrapes -DartifactId=live2d-native -Dversion=1.0.0 -Dpackaging=jar -Dclassifier=windows-x64<dependencies>
<!-- The Core Java API -->
<dependency>
<groupId>dev.eatgrapes</groupId>
<artifactId>live2d-shared</artifactId>
<version>1.0.0</version>
</dependency>
<!-- Native Implementation -->
<dependency>
<groupId>dev.eatgrapes</groupId>
<artifactId>live2d-native</artifactId>
<version>1.0.0</version>
<classifier>windows-x64</classifier> <!-- Change classifier as needed -->
</dependency>
</dependencies>For Gradle, the simplest way is to put the JARs directly into your project:
- Create a
libsfolder in your project root. - Copy the downloaded JARs into it.
- Add dependencies in
build.gradle:
dependencies {
implementation files('libs/live2d-shared.jar')
implementation files('libs/live2d-native-windows-x64.jar') // Change for your platform
}The general flow of a Live2D application is:
-
Initialize: Call
CubismFramework.startUp(). - Load: Load your model bytes and textures.
-
Loop: In your render loop, call
model.update()andmodel.draw(). - Dispose: Clean up when done.
Check out the specific sections in the sidebar to learn how to implement each step!