jMonkeyBuilder error

One day torture
Java17 and JFX19 issues have been submitted to GitHub
I tried to compile using JDK 1.8
But there still seems to be a problem
(jinput-dx8_64 )
I know too little about this file to be able to determine the cause of the error
I can’t find anything relevant in google.
Maybe I don’t know much about the problem itself and I missed something :face_exhaling: :face_exhaling: :face_exhaling: :face_exhaling:

信息: Unlocked
Exception in thread "GL-Renderer" java.lang.UnsatisfiedLinkError: The required native library 'jinput-dx8_64' was not found in the classpath via 'native/windows/jinput-dx8_64.dll'. Error message: no jinput-dx8_64 in java.library.path
	at com.jme3.system.NativeLibraryLoader.loadNativeLibrary(
INFO 18:49:36:912 ExecutorManager: initialized.
INFO 18:49:37:041 ClassPathScanner: scanning E:\Gradle\caches\modules-2\files-2.1\org.jmonkeyengine\jme3-effects\3.5.1-stable\2124d7ba6393ef557add3d8ed33642a7073f5ea\jme3-effects-3.5.1-stable.jar
INFO 18:49:37:084 ClassPathScanner: scanning E:\Gradle\caches\modules-2\files-2.1\org.jmonkeyengine\jme3-core\3.5.1-stable\eea5ce6e43f452414e23ea3664d0a01ce5a57b36\jme3-core-3.5.1-stable.jar
INFO 18:49:37:248 ClassPathScanner: scanning E:\Gradle\caches\modules-2\files-2.1\org.jmonkeyengine\jme3-effects\3.5.1-stable\2124d7ba6393ef557add3d8ed33642a7073f5ea\jme3-effects-3.5.1-stable.jar
INFO 18:49:37:259 ClassPathScanner: scanning E:\Gradle\caches\modules-2\files-2.1\org.jmonkeyengine\jme3-core\3.5.1-stable\eea5ce6e43f452414e23ea3664d0a01ce5a57b36\jme3-core-3.5.1-stable.jar
INFO 18:49:37:476 ClassPathScanner: scanned for 899 classes and 227 resources.
INFO 18:49:37:477 ClassPathScanner: scanned for 899 classes and 227 resources.
Exception in Application start method
WARNING 18:49:37:478 InitializeManager: java.lang.NullPointerException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(

Exception in thread "JFX-MainApplication" java.lang.RuntimeException: Exception in Application start method
	at com.sun.javafx.application.LauncherImpl.launchApplication1(
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$1(
Caused by: java.lang.ExceptionInInitializerError
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$8(
	at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$7(
	at com.sun.javafx.application.PlatformImpl.lambda$null$5(
	at Method)
	at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(
	at Method)
	... 1 more
Caused by: java.lang.NullPointerException
	... 16 more

This is the build.gradle file

plugins {
    id 'java'

String engineVersion = "3.5.1-stable"
group 'org.scrappers'
version '1.0-RM-VERSION'

repositories {
    maven { url '' } // for SimMath
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8

dependencies {
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
    implementation 'org.jetbrains:annotations:16.0.2'
    /* local dependencies */
    implementation fileTree(dir: "libs", include: ["*.jar", "*.so"])
    implementation fileTree(dir: "libs/extensions", include: ["*.jar", "*.so"])
    implementation fileTree(dir: "libs/extensions/simsilica", include: ["*.jar", "*.so"])
    implementation fileTree(dir: "libs/extensions/toneg0d", include: ["*.jar", "*.so"])
    implementation fileTree(dir: "libs/extensions/xbuf", include: ["*.jar", "*.so"])
    implementation fileTree(dir: "libs/http", include: ["*.jar", "*.so"])
    implementation fileTree(dir: "libs/svg", include: ["*.jar", "*.so"])

    /* remote dependencies */
    implementation "org.jmonkeyengine:jme3-core:$engineVersion"
    implementation "org.jmonkeyengine:jme3-desktop:$engineVersion"
    implementation "org.jmonkeyengine:jme3-effects:$engineVersion"
    implementation "org.jmonkeyengine:jme3-terrain:$engineVersion"
    implementation "org.jmonkeyengine:jme3-lwjgl3:$engineVersion"
    implementation "org.jmonkeyengine:jme3-plugins:$engineVersion"


test {

Looks like that is required by JavaFx. JavaFx is a pain (even if a well made library) because it is OS specific and not included in the JRE. Are you sure you want to use JavaFx and not lemur?

One of my projects uses JavaFx :frowning: and I need to include an OS specific JavaFx along with the JRE.

(Java 17 should be fine, I use Java 17)

1 Like

I’m looking for a shader visual editor like Unity and writing shader code directly to adjust the model is too abstract for me.

Some people think they want to write games but then actually spend two years writing tools.

Make sure you are doing what you really want to do.


Yes, need to find the right tools to complete game project Instead of spending a lot of time finishing tools.
In the past six months, with the help of most people in the forum, I quickly mastered most of the basics of JME :laughing: :laughing: :laughing: :laughing:
There may be more challenges ahead :face_exhaling: :face_exhaling: :face_exhaling: :face_exhaling:

Jme extracts native images from your jar on runtime using jme NativeLibraryLoader, make you sure you have the administrator privileges when running the jar…also check other dynamic libraries .dll around your jar to confirm that you have the administrator privileges.


Because, if you don’t, extraction will fail as it seems here.

1 Like