Does jMonkeyEngine sdk currently not work in macOS?

Hey jMonkeys,

my studies have me do a project with the jMonkeyEngine but I’m unable to make the sdk run on macOS.
I’m on an Intel based late 2016 MacBook Pro (Touch Bar) and my macOS version is 11.2.3 (latest as of now).

Running any Installer.app off the GitHub releases doesn’t open any gui nor crash report. I’ve installed the AdoptOpenJDK 8 and opening the ‘jmonkeyplatform’ unix executable in /bin/ of the universal release package exits with this:

Screenshot 2021-04-02 at 18.26.04

java -version reports:

openjdk version "1.8.0_282"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_282-b08)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.282-b08, mixed mode)

Am I missing something obvious? There is no difference between using v3.2.4-stable-sdk1 or v3.3.2-stable-sdkpreview1.

Thank you for any helpful responses.

Sounds like the JAVA_HOME env variable is not set.

1 Like

I tried every command which could determinate the java home:

image

My .zshrc contains:

# Java
export JAVA_HOME="$(/usr/libexec/java_home)"

For now I was able to make the sdk start by editing jmonkeyplatform.conf in etc directory to:

jdkhome="/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home"

Is my JAVA_HOME really not configured right or does the sdk-download have some problems?

On MacOS it would be hard to tell without diving in deeper. I remember the old days netbeans had this issue on Linux. Not sure if it still does. The sdk uses the netbeans platform and installer, and it looks like this may be a bug there.

Perhaps on of the sdk devs could chime in.

I recently installed the SDK 3.3 to MacOS. Prior to installation I needed to install JDK/JRE. I installed AdoptOpenJDK 11. And only after that I was able to launch the installation. The SDK comes with its own JDK but apparently the installation can’t use that.

same here, latest SDK fails to install using internally included JDK, you need to have any jdk installed on OSX before installing jme sdk