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.7.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.git
cd jmonkeyengine
git checkout -b latest v3.7.0-stable
(unless you plan to do development)cd
to the extracted directory/folder./gradlew build
.\gradlew build
After a successful build, fresh JARs will be found in "*/build/libs".
You can install the JARs to your local Maven repository:
./gradlew install
.\gradlew install
You can run the "jme3-examples" app:
./gradlew run
.\gradlew run
You can restore the project to a pristine state:
./gradlew clean
.\gradlew clean