3.1 master build error

gradlew guild gives me this (done several times):

:sdk:createProjectXml UP-TO-DATE
:sdk:buildSdk FAILED

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘C:\Test\jmonkeyengine\sdk\build.gradle’ line: 397
  • What went wrong:
    Execution failed for task ‘:sdk:buildSdk’.
    The following error occurred while executing this line:
    C:\Test\jmonkeyengine\sdk\build.xml:7: The following error occurred while
    executing this line:
    C:\Test\jmonkeyengine\sdk\nbproject\build-impl.xml:41: Cannot find NetBean
    s build harness.
    Check that nbplatform.default.netbeans.dest.dir and nbplatform.default.harness
    .dir are defined.
    On a developer machine these are normally defined in ${user.properties.file}=$
    {netbeans.user}/build.properties
    but for automated builds you should pass these properties to Ant explicitly.
  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug
    option to get more log output.

BUILD FAILED

You probably opened the sdk project in netbeans before building the main project. Delete the sdk/nbproject/private folder, then build the main gradle project.

Well… actualy I tried to build from a VM.

However. now I have this:

:sdk:buildSdk
[ant:convertclusterpath] Warning: no numbered cluster matching bare name ‘C:\Tes
t\jmonkeyengine\netbeans\java’ found.
[ant:convertclusterpath] Warning: no numbered cluster matching bare name ‘C:\Tes
t\jmonkeyengine\netbeans\nb’ found.
[ant:convertclusterpath] Warning: no numbered cluster matching bare name ‘C:\Tes
t\jmonkeyengine\netbeans\platform’ found.
:sdk:buildSdk FAILED

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘C:\Test\jmonkeyengine\sdk\build.gradle’ line: 397
  • What went wrong:
    Execution failed for task ‘:sdk:buildSdk’.
    The following error occurred while executing this line:
    C:\Test\jmonkeyengine\netbeans\harness\suite.xml:195: Problem with C:\Temp
    \PBR\jmonkeyengine\netbeans\ide\modules\ext\xerces-2.8.0.jar: java.util.zip.ZipE
    xception: error in opening zip file
  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug
    option to get more log output.

BUILD FAILED

Looks like the netbeans download was corrupted (or whatever OS you run on that VM has wonky zip support). Try deleting both the netbeans folder and the sdk/nbproject/private folder again.

1 Like

Ahem… gradle is OK, now ant gives me this :frowning:

“c:\Program Files\NetBeans 7.3\java\ant\bin\ant.bat” -f .\sdk build-zip

build-init:

-javac-init-nbjdk:

-javac-init-bootclasspath-prepend:

-javac-init-no-bootclasspath-prepend:

-javac-init:

init:

up-to-date:

compile:

BUILD FAILED
C:\Test\jmonkeyengine\netbeans\harness\suite.xml:187: The following error oc
curred while executing this line:
C:\Test\jmonkeyengine\netbeans\harness\common.xml:220: Class not found: java
c1.8

idk why you use the ant.bat from netbeans 7 directly but after you built the main project you can build with vanilla ANT or open the SDK project with NetBeans 8 and call the build-zip target from there. (Actually it should even work with NB7 but when coding/running the SDK from NB you might get some oddities).

Solved. I think there is some problem with the latest jdk 8 u40, because it complains that it can’t find tools.jar or something like that.

This is what I did:

set PATH="C:\Program Files\Java\jdk1.7.0_03\bin
“c:\Program Files\NetBeans 7.3\java\ant\bin\ant” -f .\sdk build-zip

BUILD SUCCESSFUL :slight_smile:

I think its mainly because you use a bundled ANT thats not installed in your system… :slight_smile: