Edit was solved by removing the gradle cache. For me on windows with the 3.2 sdk it was located at {projectDirectory}\.nb-gradle\private\cache
. Just delete everything inside that folder (not the folder itself) and gradle will pull fresh files.
So, I have a project managed by gradle in the 3.2 SDK. I just tried to run my project, and the jme3 settings dialog popped up fine, but when I hit continue, I get:
Uncaught exception thrown in Thread[main,5,main]
UnsatisfiedLinkError: Failed to locate library: lwjgl.dll
I have tried clean and build, and restarting the sdk, but I can’t get past this. I have checked in my file manager and don’t see lwjgl.dll (though I do see bulletjme.dll).
Here is my build.gradle:
plugins {
id 'java'
id 'application'
id 'eclipse'
id 'maven'
id 'groovy'
}
def assetPack = "../Assets"
description = 'Core'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
ext.jmonkeyengineVersion = '3.3.2-stable' // from jCenter
tasks.withType(JavaCompile) { // Java compile-time options:
options.compilerArgs << '-Xdiags:verbose'
options.compilerArgs << '-Xlint:unchecked'
options.deprecation = true
options.encoding = 'UTF-8'
}
tasks.withType(JavaExec) { // Java runtime options:
args = []
classpath sourceSets.main.runtimeClasspath
//debug true
enableAssertions true
//jvmArgs '-verbose:gc'
//jvmArgs '-Xbatch'
jvmArgs '-Xms512m', '-Xmx512m'
//jvmArgs '-XX:+PrintCompilation'
//jvmArgs '-XX:+UseConcMarkSweepGC'
jvmArgs '-XX:+UseG1GC', '-XX:MaxGCPauseMillis=10'
}
mainClassName = "engine.Launcher"
if (!hasProperty('mainClass')) {
ext.mainClass = mainClassName
}
jar.manifest.attributes('Main-Class': mainClassName)
ant.importBuild("${assetPack}/build.xml") { antTarget ->
'ant-' + antTarget
}
compileJava.dependsOn "ant-jar"
repositories {
mavenLocal()
jcenter()
maven { url 'http://nifty-gui.sourceforge.net/nifty-maven-repo' }
mavenCentral()
}
dependencies {
implementation 'org.jmonkeyengine:jme3-core:' + jmonkeyengineVersion
implementation 'org.jmonkeyengine:jme3-desktop:' + jmonkeyengineVersion
implementation 'org.jmonkeyengine:jme3-effects:' + jmonkeyengineVersion
//implementation 'org.jmonkeyengine:jme3-networking:' + jmonkeyengineVersion
implementation 'org.jmonkeyengine:jme3-niftygui:' + jmonkeyengineVersion
implementation 'org.jmonkeyengine:jme3-terrain:' + jmonkeyengineVersion
//runtimeOnly 'org.jmonkeyengine:jme3-lwjgl:' + jmonkeyengineVersion // LWJGL 2.x
implementation 'org.jmonkeyengine:jme3-lwjgl3:' + jmonkeyengineVersion // LWJGL 3.x
implementation 'com.github.stephengold:Minie:3.0.0'
runtimeOnly 'org.jmonkeyengine:jme3-blender:' + jmonkeyengineVersion
runtimeOnly 'org.jmonkeyengine:jme3-jogg:' + jmonkeyengineVersion
runtimeOnly 'org.jmonkeyengine:jme3-plugins:' + jmonkeyengineVersion
//runtimeOnly 'org.jmonkeyengine:jme3-testdata:3.3.2-stable'
//runtimeOnly 'org.jmonkeyengine:jme3-testdata:3.3.0-alpha2'
implementation 'com.google.guava:guava:30.1-jre'
implementation 'org.slf4j:slf4j-api:1.7.13'
implementation "com.simsilica:lemur:1.14.0"
implementation "com.simsilica:lemur-proto:1.11.0"
implementation fileTree(dir: "${assetPack}/dist", include: "*.jar")
}
// cleanup tasks
clean.dependsOn('cleanDLLs', 'cleanDyLibs', 'cleanLogs', 'cleanSOs')
task cleanDLLs(type: Delete) {
delete fileTree(dir: '.', include: '*.dll')
}
task cleanDyLibs(type: Delete) {
delete fileTree(dir: '.', include: '*.dylib')
}
task cleanLogs(type: Delete) {
delete fileTree(dir: '.', include: 'hs_err_pid*.log')
}
task cleanSOs(type: Delete) {
delete fileTree(dir: '.', include: '*.so')
}
Any help greatly appreciated!