[SOLVED] Need help with JME SDK building

Hi friends
Of my curiosity , I want to build the SDK from source. I checked most of other posts .
I cloned the master from Github . (867 MB)
I have gradle installed .(v 2.8)
JDK (v 1.8.0_51)
run CMD in Windows 10
but get errors when run this command: gradlew build

D:\Program Files\JME3.1GitHub\jmonkeyengine>gradlew build
Caught exception in FS.readPipe()
java.io.IOException: Cannot run program "bash" (in directory "C:\Users\IDEA"): CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
        at java.lang.Runtime.exec(Runtime.java:620)
        at org.eclipse.jgit.util.FS.readPipe(FS.java:431)
        at org.eclipse.jgit.util.FS_Win32.discoverGitPrefix(FS_Win32.java:113)
        at org.eclipse.jgit.util.FS.gitPrefix(FS.java:517)
        at org.eclipse.jgit.util.SystemReader$Default.openSystemConfig(SystemReader.java:92)
        at org.eclipse.jgit.internal.storage.file.FileRepository.<init>(FileRepository.java:171)
        at org.eclipse.jgit.lib.BaseRepositoryBuilder.build(BaseRepositoryBuilder.java:577)
        at org.eclipse.jgit.api.Git.open(Git.java:113)
        at org.eclipse.jgit.api.Git.open(Git.java:97)
        at org.eclipse.jgit.api.Git$open.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.ajoberstar.grgit.operation.OpenOp.call(OpenOp.groovy:84)
        at org.ajoberstar.grgit.operation.OpenOp.call(OpenOp.groovy)
        at java_util_concurrent_Callable$call.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
        at org.ajoberstar.grgit.util.OpSyntaxUtil.tryOp(OpSyntaxUtil.groovy:45)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
        at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.invoke(StaticMetaMethodSite.java:43)
        at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:88)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.ajoberstar.grgit.Grgit.open(Grgit.groovy:230)
        at org.ajoberstar.grgit.Grgit.open(Grgit.groovy)
        at org.ajoberstar.grgit.Grgit$open.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at version_cm17dcev25qj6h5tsb2k5f4si$_run_closure2.doCall(D:\Program Files\JME3.1GitHub\jmonkeyengine\version.gradle:57)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
        at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:278)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
        at groovy.lang.Closure.call(Closure.java:423)
        at groovy.lang.Closure.call(Closure.java:439)
        at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:63)
        at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:130)
        at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:110)
        at org.gradle.api.internal.AbstractTask.configure(AbstractTask.java:482)
        at org.gradle.api.internal.project.AbstractProject.task(AbstractProject.java:863)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
        at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:225)
        at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:129)
        at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:147)
        at org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.java:79)
        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
        at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:933)
        at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1256)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1209)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
        at version_cm17dcev25qj6h5tsb2k5f4si.run(D:\Program Files\JME3.1GitHub\jmonkeyengine\version.gradle:55)
        at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:52)
        at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:148)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyScript(DefaultObjectConfigurationAction.java:93)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.access$000(DefaultObjectConfigurationAction.java:36)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$1.run(DefaultObjectConfigurationAction.java:62)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.execute(DefaultObjectConfigurationAction.java:131)
        at org.gradle.api.internal.project.AbstractPluginAware.apply(AbstractPluginAware.java:37)
        at org.gradle.api.Project$apply$0.call(Unknown Source)
        at org.gradle.api.internal.project.ProjectScript.apply(ProjectScript.groovy:34)
        at org.gradle.api.Script$apply$0.callCurrent(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
        at build_1pbydng59yydazqlak2pk095w.run(D:\Program Files\JME3.1GitHub\jmonkeyengine\build.gradle:13)
        at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:52)
        at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:148)
        at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:39)
        at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
        at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
        at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:59)
        at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:504)
        at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:83)
        at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42)
        at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:129)
        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)
        at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
        at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
        at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)
        at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
        at org.gradle.launcher.Main.doAction(Main.java:33)
        at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
        at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
        at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:56)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
        at java.lang.ProcessImpl.start(ProcessImpl.java:137)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        ... 135 more
Full Version: 3.1-5293
POM Version: 3.1.0-SNAPSHOT
NBM Revision: 5293
NBM UC Suffix: nightly/3.1/plugins
Downloading NetBeans Platform base, this only has to be done once..
> Configuring > 22/23 projects > :sdk

Can you help me with this? I appreciate you in advance .Thanks

If you’re on windows try running gradlew.bat build instead of gradlew.

I could solve it.
The problem was because Git Bash couldn’t see my PATH.
I reinstalled Git on my windows and instead of checking “Use git bash only”
I checked “Run Git from windows command prompt” . And it solved the problem.
you can see here for more info.

I have next question.
Can I change
netbeansUrl = http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-javase.zip
to
netbeansUrl = http://download.netbeans.org/netbeans/8.1/final/zip/netbeans-8.1-201510222201-javase.zip
inside file gradle.properties ?

Edit: I mean if I change it to netbeans 8.1 then build it ; will it work OK without problem ?
or just let it be on netbeans 8.0.2 ?

Well, how about trying and see what happens :smile: You are anyways using the 3.1-alpha-not-released-nothing-is-guaranteed-to-work version and should expect things to basically not work.

Yeh . Let me give it a try . Hope it works. :wink:

With Netbeans 8.0.2 it succeeded but with 8.1 failed.
I can not put the log here because it is too long .
so I uploaded them in uploaded.net .link

The fail exception is:

[ant:nb-javac] 4 errors
[ant:nb-javac] 33 warnings
:sdk:buildSdk FAILED

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\Program Files\JME3.1GitHub\jmonkeyengine\sdk\build.gradle' line: 400

* What went wrong:
Execution failed for task ':sdk:buildSdk'.
> The following error occurred while executing this line:
  D:\Program Files\JME3.1GitHub\jmonkeyengine\netbeans\harness\suite.xml:187: The following error occurred while executing this line:
  D:\Program Files\JME3.1GitHub\jmonkeyengine\netbeans\harness\common.xml:224: Compile failed; see the compiler error output for details.

I’ve built using 8.0.1 under Ubuntu 15.10 (Linux), but, the built SDK does not work properly. Many dialogs, for example the “New Project” dialog, will only occasionally open correctly. Most of the time, the dialogs open corrupted. For example, the “New Project” dialog only opens correctly the first time, like this:

On subsequent attempts, this dialog opens corrupted like this:

This happens for most dialogs that I try to open, though, some of them will open correctly/incorrectly every other time, the “New Project”, “New File”, etc dialogs always open corrupted after the first time.

I also have Netbeans 8.1 installed and that does not have this issue. I’ve tried various look-and-feels all with the same problem. I’ve also tried running with different JDK’s. The one I am using now, that seems to work the best, is the Oracle JDK 8 “u66” to be precise.

I think it might be a Netbeans 8.0.2 bug on Ubuntu Linux 15.10 (because Netbeans 8.1 works fine). Is there any way of getting the SDK to build with 8.1.x instead of 8.0.2?

Sorry to bump an old topic, but I think that it’s better than opening a new one.
I’m trying to set up netbeans to build SDK because latest events about SDK made decide to try to contribute to SDK.
However following this tutorial http://wiki.jmonkeyengine.org/doku.php/sdk:build_platform I get some weird errors and build fails. I haven’t changed any of the code yet.
Console output:

...Made a cut to here, too much text...
com.jme3.gde.core.projectized-common.basic-init:
com.jme3.gde.core.basic-init:
com.jme3.gde.core.files-init:
com.jme3.gde.core.nbm-license-init:
com.jme3.gde.core.build-init:
warning: had to upgrade dependencies for module com.jme3.gde.core: added = [module org.netbeans.api.progress.compat8 > 1.40, module org.netbeans.api.progress.nb > 1.40, module org.netbeans.modules.java.source.base > 1.1, module org.netbeans.modules.java.source.compat8 > 9.0, module org.openide.filesystems.compat8, module org.netbeans.modules.java.project.ui/1 > 1.62, module org.netbeans.modules.project.ant.ui/1 > 1.62, module org.netbeans.api.templates > 1.0, module org.netbeans.modules.project.libraries.ui/1 > 1.49, module org.openide.util.ui > 9.3, module org.openide.filesystems.nb, module org.netbeans.modules.editor.document > 1.0, module org.netbeans.modules.project.ant.compat8/1 > 1.62] removed = []; details: [#243100: Separate desktop-independent utilities, Separate java.project into desktop and NetBeans independent and dependent parts, Separate project.ant into desktop and NetBeans independent and dependent parts, Separation of Parsing and Indexing APIs, Separation of UI from External Libraries, Separation of desktop and cleanup, Swing dependencies split away, Templates API has been separated into its own module., The old editor settings and completion APIs have been deprecated, see http://wiki.netbeans.org/EditorSettingsUpgrade and update your module.]
com.jme3.gde.core.init:
com.jme3.gde.core.up-to-date:
com.jme3.gde.core.compile:
Compiling 260 source files to C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\jme3-core\build\classes
warning: [options] bootstrap class path not set in conjunction with -source 1.6
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'value()' in type 'SuppressWarnings': class file for org.netbeans.api.annotations.common.SuppressWarnings not found
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'justification()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'value()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'justification()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'value()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'justification()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/SourceUtils.class): warning: Cannot find annotation method 'value()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/SourceUtils.class): warning: Cannot find annotation method 'justification()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/SourceUtils.class): warning: Cannot find annotation method 'value()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/SourceUtils.class): warning: Cannot find annotation method 'justification()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\jme3-core\src\com\jme3\gde\core\appstates\RunAppStateAction.java:82: warning: Should explicitly specify lazy attribute
public class RunAppStateAction implements ContextAwareAction {
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\jme3-core\src\com\jme3\gde\core\codeless\CodelessProjectWizardAction.java:62: warning: iconBase unused on eager registrations
@ActionRegistration(iconBase = "com/jme3/gde/core/assets/actions/jme-logo.png",
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'value()' in type 'SuppressWarnings': class file for org.netbeans.api.annotations.common.SuppressWarnings not found
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'justification()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'value()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'justification()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'value()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'justification()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/SourceUtils.class): warning: Cannot find annotation method 'value()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/SourceUtils.class): warning: Cannot find annotation method 'justification()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/SourceUtils.class): warning: Cannot find annotation method 'value()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/SourceUtils.class): warning: Cannot find annotation method 'justification()' in type 'SuppressWarnings'
warning: No processor claimed any of these annotations: javax.annotation.Generated
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\jme3-core\src\com\jme3\gde\core\assets\AssetsLookupProvider.java:48: error: cannot find symbol
import org.netbeans.spi.project.ui.ProjectOpenedHook;
  symbol:   class ProjectOpenedHook
  location: package org.netbeans.spi.project.ui
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\jme3-core\src\com\jme3\gde\core\assets\AssetsLookupProvider.java:120: error: cannot find symbol
    private ProjectOpenedHook openedHook = new ProjectOpenedHook() {
  symbol:   class ProjectOpenedHook
  location: class AssetsLookupProvider
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\jme3-core\src\com\jme3\gde\core\codeless\CodelessProjectWizardAction.java:47: error: cannot find symbol
import org.netbeans.api.project.ui.OpenProjects;
  symbol:   class OpenProjects
  location: package org.netbeans.api.project.ui
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\jme3-core\src\com\jme3\gde\core\util\ProjectSelection.java:17: error: cannot find symbol
import org.netbeans.api.project.ui.OpenProjects;
  symbol:   class OpenProjects
  location: package org.netbeans.api.project.ui
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'value()' in type 'SuppressWarnings': class file for org.netbeans.api.annotations.common.SuppressWarnings not found
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'justification()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'value()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'justification()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'value()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/ClassIndex.class): warning: Cannot find annotation method 'justification()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/SourceUtils.class): warning: Cannot find annotation method 'value()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/SourceUtils.class): warning: Cannot find annotation method 'justification()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/SourceUtils.class): warning: Cannot find annotation method 'value()' in type 'SuppressWarnings'
C:\Users\grizeldi\Documents\NetBeansProjects\jmonkeyengine\sdk\build\public-package-jars\org-netbeans-modules-java-source-base.jar(org/netbeans/api/java/source/SourceUtils.class): warning: Cannot find annotation method 'justification()' in type 'SuppressWarnings'
4 errors
33 warnings
C:\Program Files\NetBeans 8.1\harness\suite.xml:187: The following error occurred while executing this line:
C:\Program Files\NetBeans 8.1\harness\common.xml:224: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 19 seconds)

Also when I open the WelcomeScreenTopComponent.java I get an error at imports: it doesn’t find helpCTX…

Help anyone? @normen maybe?
I’m a Nebeans API beginner - after some tutorials it seemed to understand how it works, but when you open it and there are just random error and googling doesn’t help… Well I hate that feeling :wink:
I hope I’m not making a really stupid beginner mistake here.

I know that error.
It’s because ProjectOpenedHook is now in another class so you’d need to fix dependencies (which is what I am currently doing, so I might link you a commit tomorrow).

What you should do is simply use Netbeans 8 over Netbeans 8.1.
As it says here: C:\Program Files\NetBeans 8.1\harness\suite.xml.

Though I wonder how you got 8.1?
Ahh I see now, you are trying to build the sdk from YOUR Netbeans.

Go to the Repo, type ./gradlew buildSdk.
That will download the appropriate (8.0) netbeans into the netbeans subfolder.
Use that Netbeans to compile/debug the SDK. (launch netbeans/bin/netbeans.exe)

1 Like

Ahh…
./gradlew buildSDK
I was running regular build and it took ages then failed. SDK, the magic word :smiley:
Thanks for info, I’ll try tomorrow (gotta go sleep now).

Well, actually buildSdk (notice the capitalisation) will take even longer.
The regular build builds the needed Engine Libraries (When you only make changes to the SDK, they won’t be rebuilt).

Also note that you can run it from Netbeans (I always do, since you’d need createZipDistribution, or similar, to additionally have that zip so you can actually run the SDK).
You also should run it from netbeans to be able to debug or atleast see the log messages clearly.

1 Like

Now this is what it takes to build the SDK with Netbeans 8.1:
https://github.com/MeFisto94/jmonkeyengine/commit/83cdef76f688f8f62a4d9e6bce279eeaae2f9a4d
(actually it’s more than needed because of the cool auto-update ANT target, however that way we don’t need backwards-compability modules).

Dear All, feel free to test the NB 8.1, to see if it works atleast as well as the 3.1 SDK, so we can probably merge it into master.

4 Likes

@Darkchaos and @MeFisto94 :
I want to build/test the NB 8.1 myself.
You wrote that I should build it from Netbeans, but which project should I open?

I am MeFisto94 :slight_smile:
I use the following “flow”

./gradlew buildSdk # (or use ./gradlew assemble)
netbeans/bin/netbeans # (.exe on Windows)

Then I open the Project “sdk” (which is actually a Project-Group) and right-click “Create MacOs Application”, so I can launch it without being run through another NB instance.

Alternatively you should be able to right-click on “sdk” and select debug/run from there.

Note: Technically it shouldn’t matter if you build the SDK through gradlew or the opened netbeans, however calling gradlew ensures that the Engine itself is built, which is something I don’t know if the sdk does.
Note: Ensure to delete your netbeans folder before running the new gradlew for the first time, or else you’d download netbeans 8.0 and the build will fail

1 Like

@Darkchaos :
It works. :smile:

Thank you so far.

More on this later. :smile:

2 Likes