Engine not compiling - missing classes

Hey everyone,

I have just upgraded the engine to the latest repo version (haven’t done it for some time because of lack of time) and the project won’t compile.
The class com.jme3.system.JmeSystemDelegate has a reference to class JmeVersion which is not there. It should be in the same package imho.

Am I doing something wrong or there was not full commit ?

There are also missing methods in com.jme3.system.lwjgl.LwjglContext which uses the class
org.lwjgl.opengl.Display. It seems like the method getPixelScaleFactor() is gone.

Did anyone have similiar issues ?

Just build.

I tried but I get this:

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Marcin\git\jmonkeyengine\jme3-bullet-native\build.gradle' line: 143

* What went wrong:
A problem occurred evaluating project ':jme3-bullet-native'.
> Could not find property 'StaticLibraryBinarySpec' on project ':jme3-bullet-native'.

This happens when I use Gradle 1.11

When I downloaded the latest version: 2.3 I got different error.

    FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Marcin\git\jmonkeyengine\jme3-bullet-native\build.gradle' line: 14

* What went wrong:
A problem occurred evaluating project ':jme3-bullet-native'.
> Could not find method libraries() for arguments [build_57wrnhmhb443z9bde43rpp1it$_run_closure2@634f9a50] on project ':jme3-bullet-native'.

I tried to build it using gradle plugin for eclipse.

Well I can’t speak for eclipse and how to configure that but you should use gradle 2.2 or simply the gradlew command.

See Not compatible with gradle 2.3 · Issue #221 · jMonkeyEngine/jmonkeyengine · GitHub

Thanks @normen
building the project with gradlew worked :smile:
At least on Ubuntu.

But I guess that eclipse gradle plugin did some mess on the project on windows and that is why I cannot compile it properly.
But at least it works on one machine. I will repair it tomorrow on the other one.

Thanks again :smile:

@Empire_Phoenix gradlew downloaded the proper gradle version so I guess I won’t have more problems there.

Yeah, gradle made changes to native compilation in the latest update but I didn’t look into what needs to be changed yet. Especially as they say “Note that this functionality is a work-in-progress, and in some cases it may be preferable to remain on an earlier version of Gradle until it has stabilised.”…