I am trying ot build the NetBeans source on my Mac.

I have downloaded master from https://github.com/apache/netbeans and run 

ant build-nozip -Dpermit.jdk9.builds=true with Java 11 I get 

compile-bridge:
    [javac] Compiling 7 source files to 
/Users/markee/Downloads/netbeans-master/extide/o.apache.tools.ant.module/build/bridge-classes
   [repeat] warning: [options] bootstrap class path not set in conjunction with 
-source 6
   [repeat] warning: [options] source value 6 is obsolete and will be removed 
in a future release
   [repeat] warning: [options] target value 1.6 is obsolete and will be removed 
in a future release
   [repeat] warning: [options] To suppress warnings about obsolete options, use 
-Xlint:-options.
   [repeat] warning: unknown enum constant When.ALWAYS
   [repeat]   reason: class file for javax.annotation.meta.When not found
   [repeat] 
/Users/markee/Downloads/netbeans-master/extide/o.apache.tools.ant.module/src-bridge/org/apache/tools/ant/module/bridge/impl/BridgeImpl.java:123:
 warning: [deprecation] newInstance() in Class has been deprecated
   [repeat]                 return 
((EnumeratedAttribute)c.newInstance()).getValues();
   [repeat]                                               ^
   [repeat]   where T is a type-variable:
   [repeat]     T extends Object declared in class Class
   [repeat] 
/Users/markee/Downloads/netbeans-master/extide/o.apache.tools.ant.module/src-bridge/org/apache/tools/ant/module/bridge/impl/BridgeImpl.java:149:
 error: cannot assign a value to final variable systemClasspath
   [repeat]             Path.systemClasspath = new Path(null, 
AntBridge.getMainClassPath());
   [repeat]                 ^
   [repeat] 
/Users/markee/Downloads/netbeans-master/extide/o.apache.tools.ant.module/src-bridge/org/apache/tools/ant/module/bridge/impl/NbInputHandler.java:107:
 warning: [unchecked] unchecked call to JComboBox(Vector<E>) as a member of the 
raw type JComboBox
   [repeat]             combo = new 
JComboBox(((MultipleChoiceInputRequest)request).getChoices());
   [repeat]                     ^
   [repeat]   where E is a type-variable:
   [repeat]     E extends Object declared in class JComboBox
   [repeat] 1 error
   [repeat] 7 warnings
  [nbmerge] Failed to build target: all-o.apache.tools.ant.module

Under JAva11 I can build the platform with ant -Dcluster.config=platform but 
not the IDE with ant -Dcluster.config=basic or ant -Dcluster.config=full

BUILD FAILED
/Users/markee/Downloads/netbeans-master/nbbuild/build.xml:512: The following 
error occurred while executing this line:
/Users/markee/Downloads/netbeans-master/nbbuild/build.xml:507: The following 
error occurred while executing this line:
/Users/markee/Downloads/netbeans-master/nbbuild/build.xml:554: The following 
error occurred while executing this line:
/Users/markee/Downloads/netbeans-master/extide/o.apache.tools.ant.module/build.xml:38:
 Compile failed; see the compiler error output for details.

I switch to Java 8 , delete everything in netbeans and start again with ant and 
I get 

jar-lib:
[nb-ext-jar] Building jar: 
/Users/markee/Downloads/netbeans-master/nbbuild/netbeans/ide/modules/ext/ddl.jar

up-to-date:

projectized-common.compile:
   [depend] The class org.netbeans.modules.db.explorer.node.Bundle in file 
/Users/markee/Downloads/netbeans-master/ide/db/build/classes/org/netbeans/modules/db/explorer/node/Bundle.class
 is out of date due to org.netbeans.modules.db.explorer.node.Bundle but has not 
been deleted because its source file could not be determined
   [depend] Deleted 118 out of date files in 0 seconds
 [nb-javac] Compiling 131 source files to 
/Users/markee/Downloads/netbeans-master/ide/db/build/classes
   [repeat] warning: [options] bootstrap class path not set in conjunction with 
-source 1.7
   [repeat] 
/Users/markee/Downloads/netbeans-master/ide/db/src/org/netbeans/api/db/explorer/ConnectionManager.java:24:
 error: cannot access DBConnection
   [repeat] import org.netbeans.lib.ddl.DBConnection;
   [repeat]                            ^
   [repeat]   bad class file: 
/Users/markee/Downloads/netbeans-master/nbbuild/netbeans/ide/modules/ext/ddl.jar(org/netbeans/lib/ddl/DBConnection.class)
   [repeat]     class file has wrong version 55.0, should be 52.0
   [repeat]     Please remove or make sure it appears in the correct 
subdirectory of the classpath.
  [nbmerge] Failed to build target: all-db

BUILD FAILED
/Users/markee/Downloads/netbeans-master/nbbuild/build.xml:512: The following 
error occurred while executing this line:
/Users/markee/Downloads/netbeans-master/nbbuild/build.xml:507: The following 
error occurred while executing this line:
/Users/markee/Downloads/netbeans-master/nbbuild/build.xml:554: The following 
error occurred while executing this line:
/Users/markee/Downloads/netbeans-master/nbbuild/templates/common.xml:201: 
Compile failed; see the compiler error output for details.

Any advice on what am I doing wrong or missing?

Kind Regards,


MArk



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to