How to build the sdk with xbuf?

I downloaded (the source) from Release 3.1-beta1_xbuf-SNAPSHOT · jMonkeyEngine/sdk · GitHub. I ran the build_engine script from Git Bash and that worked fine. However, when I try to run gradlew.bat buildSdk (from the windows command line) it cannot find the dependencies (like bullet, etc…):

c:\projects5\sdk-3.1-beta1_xbuf-SNAPSHOT>gradlew.bat buildSdk
Failed to get repository info: repository not found: C:\projects5\sdk-3.1-beta1_xbuf-SNAPSHOT. Only partial build info will be generated.

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘C:\projects5\sdk-3.1-beta1_xbuf-SNAPSHOT\build.gradle’ line: 138
  • What went wrong:
    A problem occurred evaluating root project ‘sdk-3.1-beta1_xbuf-SNAPSHOT’.

Could not resolve all dependencies for configuration ‘:corelibs’.
Could not find org.jmonkeyengine:jme3-jbullet:3.1.0–SNAPSHOT.
Searched in the following locations:
Required by:
Could not find org.jmonkeyengine:jme3-jogg:3.1.0–SNAPSHOT.
Searched in the following locations:
Required by:
Could not find org.jmonkeyengine:jme3-networking:3.1.0–SNAPSHOT.
Searched in the following locations:
Required by:
Could not find org.jmonkeyengine:jme3-niftygui:3.1.0–SNAPSHOT.
Searched in the following locations:
Required by:

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


Total time: 46.086 secs

What am I doing wrong here?

Why you are not directly downloading jmonkeyplatform-windows-x64.exe(assuming you are on windows) which is built and ready to be installed?

I’d like to build it from source rather than use the pre-built binaries so I can get a better understanding of the process. I am doing Android development and I am probably going to be doing things in the future that will require me to build from source so it would be nice to know how to do.

Please take a look here :

Yes, funny thing, I just found that too (before I posted) and I guess I didn’t have a good enough look at it. It looks like that will solve the issue I was having. Thanks!

Also, if you want to build it from source, then you better build from github master branch so you have the latest updates. (ex: updating to v0.9.1 of xbuf)
so you can go : GitHub - jMonkeyEngine/sdk: The jMonkeyEngine3 SDK based on netbeans click on green button and download zip.

Okay, cool, will do. I followed the instructions you pointed me to and the snapshot built perfectly, but I will get the master branch as you suggest. Thanks!

mishe ye email be man bedid ?

Also if you execute build_engine in git bash you might also have to run gradlew there, since it might install the engine into it’s own directories.

We currently have problems like this because the engine versioning scheme actually differs when you build master vs a tagged commit vs travis and the sdk has a jmeVersion in it’s build.gradle which you might have to adopt to what has been built.