Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.jmonkeyengine:jMonkeyEngine:3.8.0-alpha2'
}
dependencies {
implementation("com.github.jmonkeyengine:jMonkeyEngine:3.8.0-alpha2")
}
<dependency>
<groupId>com.github.jmonkeyengine</groupId>
<artifactId>jMonkeyEngine</artifactId>
<version>3.8.0-alpha2</version>
</dependency>
libraryDependencies += "com.github.jmonkeyengine" % "jMonkeyEngine" % "3.8.0-alpha2"
:dependencies [[com.github.jmonkeyengine/jMonkeyEngine "3.8.0-alpha2"]]
jMonkeyEngine is a 3-D game engine for adventurous Java developers. It’s open-source, cross-platform, and cutting-edge. v3.8.0 is the latest stable version of the engine.
The engine is used by several commercial game studios and computer-science courses. Here's a taste:

Go to https://github.com/jMonkeyEngine/sdk/releases to download the jMonkeyEngine SDK. Read the wiki for the installation guide and tutorials. Join the discussion forum to participate in our community, get your questions answered, and share your projects.
Note: The master branch on GitHub is a development version of the engine and is NOT MEANT TO BE USED IN PRODUCTION.
Did you miss it? Don't sweat it, here it is again.
Read our contribution guide.
JAVA_HOME environment variable to your JDK installation:
(In other words, set it to the path of a directory/folder
containing a "bin" that contains a Java executable.
That path might look something like
"C:\Program Files\Eclipse Adoptium\jdk-17.0.3.7-hotspot"
or "/usr/lib/jvm/java-17-openjdk-amd64/" or
"/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home" .)
export JAVA_HOME=" path to installation "set -g JAVA_HOME " path to installation "set JAVA_HOME=" path to installation "$env:JAVA_HOME = ' path to installation 'git clone https://github.com/jMonkeyEngine/jmonkeyengine.gitcd jmonkeyenginegit checkout -b latest v3.7.0-stable (unless you plan to do development)cd to the extracted directory/folder./gradlew build.\gradlew buildAfter a successful build, fresh JARs will be found in "*/build/libs".
You can install the JARs to your local Maven repository:
./gradlew install.\gradlew installYou can run the "jme3-examples" app:
./gradlew run.\gradlew runYou can restore the project to a pristine state:
./gradlew clean.\gradlew cleanThe engine comes with some examples that you can run with:
./gradlew runExamples
You can optionally use the -Pexample property to specify an example to start without the need to navigate the test chooser, e.g.:
./gradlew runExamples -Pexample=jme3test.light.pbr.TestPBRSimple
You can run the Android examples on a local android emulator with:
./gradlew -PbuildAndroidExamples=true -PbuildNativeProjects=true runAndroidExamples
# or for a specific example:
# ./gradlew -PbuildAndroidExamples=true -PbuildNativeProjects=true runAndroidExamples -Pexample=jme3test.post.TestBloom
Make sure to have the SDK and NDK installed and configured properly, and the emulator running before executing the command.
To run all tests and generate a JaCoCo code coverage report, run the testCodeCoverageReport Gradle task. To avoid the generation of the report, use the test task instead.
This runs all subproject tests and produces two sets of HTML reports:
build/reports/jacoco/testCodeCoverageReport/html/index.html<module>/build/reports/jacoco/test/html/index.htmlA summary index linking to every per-module report is also generated at:
build/reports/jacoco/index.html