You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by mark stephens <ma...@idrsolutions.com> on 2019/06/03 16:22:37 UTC

Where am I going wrong in building NetBeans source

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: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

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




Re: Where am I going wrong in building NetBeans source

Posted by Tushar Joshi <tu...@gmail.com>.
Do you have multiple JDKs installed on your machine?
I had issues with multiple JDKs on my Macbook as Ant was somehow using
another JDL always

I am currently using jenv to set global JDK for macOS and then the source
build works properly for me

with regards
Tushar

Re: Where am I going wrong in building NetBeans source

Posted by mark stephens <ma...@idrsolutions.com>.
Updating to latest Ant fixes it and I am back in the game….

Many thanks for all the suggestions and help.

Kind Regards,

MArk

> On 3 Jun 2019, at 22:16, Geertjan Wielenga <ge...@apache.org> wrote:
> 
> So try a higher version and see if it helps.
> 
> Gj
> 
> On Mon, 3 Jun 2019 at 23:13, mark stephens <ma...@idrsolutions.com>
> wrote:
> 
>> I am running 1.10.0
>> 
>> https://github.com/apache/netbeans says to use Ant 1.9.9 or above
>> 
>> Kind Regards,
>> 
>> MArk
>> 
>> 
>> 
>> 
>> 
>> On 3 Jun 2019, at 19:18, Geertjan Wielenga <geertjan@apache.org<mailto:
>> geertjan@apache.org>> wrote:
>> 
>> What version of Ant is installed needs to be checked.
>> 
>> Gj
>> 
>> On Mon, 3 Jun 2019 at 18:56, Jose Ch <pepness88@gmail.com<mailto:
>> pepness88@gmail.com>> wrote:
>> 
>> Hi Mark,
>> 
>> I just compile the sources an hour ago without problems, I use
>> openJ9-8u212 JDK and *ant -Dcluster.confg=release *to build the sources.
>> Perhaps there is a newer commit that broke the building.
>> 
>> Regards
>> José.
>> 
>> El lun., 3 jun. 2019 a las 11:35, mark stephens (<
>> markstephens@idrsolutions.com<ma...@idrsolutions.com>>)
>> escribió:
>> 
>> I redownloaded the master and ran under Java8 to check I had not
>> donwloaded the wrong jars and I now get this
>> 
>> Kind Regards,
>> 
>> MArk
>> 
>> compile-bridge:
>>   [mkdir] Created dir:
>> 
>> /Users/markee/Downloads/netbeans-master/extide/o.apache.tools.ant.module/build/bridge-classes
>>   [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 1.6
>>  [repeat]
>> 
>> /Users/markee/Downloads/netbeans-master/nbbuild/build/public-package-jars/org-netbeans-api-annotations-common.jar(org/netbeans/api/annotations/common/NonNull.class):
>> warning: Cannot find annotation method 'when()' in type 'Nonnull': class
>> file for javax.annotation.Nonnull not found
>>  [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: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] 4 warnings
>> [nbmerge] Failed to build target: all-o.apache.tools.ant.module
>> 
>> 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.
>> 
>> Total time: 3 minutes 3 seconds
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org<mailto:
>> dev-unsubscribe@netbeans.apache.org>
>> For additional commands, e-mail: dev-help@netbeans.apache.org<mailto:
>> dev-help@netbeans.apache.org>
>> 
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> 
>> 
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

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




Re: Where am I going wrong in building NetBeans source

Posted by Geertjan Wielenga <ge...@apache.org>.
So try a higher version and see if it helps.

Gj

On Mon, 3 Jun 2019 at 23:13, mark stephens <ma...@idrsolutions.com>
wrote:

> I am running 1.10.0
>
> https://github.com/apache/netbeans says to use Ant 1.9.9 or above
>
> Kind Regards,
>
> MArk
>
>
>
>
>
> On 3 Jun 2019, at 19:18, Geertjan Wielenga <geertjan@apache.org<mailto:
> geertjan@apache.org>> wrote:
>
> What version of Ant is installed needs to be checked.
>
> Gj
>
> On Mon, 3 Jun 2019 at 18:56, Jose Ch <pepness88@gmail.com<mailto:
> pepness88@gmail.com>> wrote:
>
> Hi Mark,
>
> I just compile the sources an hour ago without problems, I use
> openJ9-8u212 JDK and *ant -Dcluster.confg=release *to build the sources.
> Perhaps there is a newer commit that broke the building.
>
> Regards
> José.
>
> El lun., 3 jun. 2019 a las 11:35, mark stephens (<
> markstephens@idrsolutions.com<ma...@idrsolutions.com>>)
> escribió:
>
> I redownloaded the master and ran under Java8 to check I had not
> donwloaded the wrong jars and I now get this
>
> Kind Regards,
>
> MArk
>
> compile-bridge:
>    [mkdir] Created dir:
>
> /Users/markee/Downloads/netbeans-master/extide/o.apache.tools.ant.module/build/bridge-classes
>    [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 1.6
>   [repeat]
>
> /Users/markee/Downloads/netbeans-master/nbbuild/build/public-package-jars/org-netbeans-api-annotations-common.jar(org/netbeans/api/annotations/common/NonNull.class):
> warning: Cannot find annotation method 'when()' in type 'Nonnull': class
> file for javax.annotation.Nonnull not found
>   [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: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] 4 warnings
>  [nbmerge] Failed to build target: all-o.apache.tools.ant.module
>
> 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.
>
> Total time: 3 minutes 3 seconds
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org<mailto:
> dev-unsubscribe@netbeans.apache.org>
> For additional commands, e-mail: dev-help@netbeans.apache.org<mailto:
> dev-help@netbeans.apache.org>
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: Where am I going wrong in building NetBeans source

Posted by Antonio <an...@vieiro.net>.
Is this an "ant" you've installed with apt? I think someone reported 
problems with the ant version that was bundled with Ubuntu/Debian.

I use 1.10.5 (from ant.apache.org) on Debian stretch (9.9) and I can 
build without problems.

Cheers,
Antonio

El 3/6/19 a las 23:13, mark stephens escribió:
> I am running 1.10.0
> 
> https://github.com/apache/netbeans says to use Ant 1.9.9 or above
> 
> Kind Regards,
> 
> MArk
> 
> 
> 
> 
> 
> On 3 Jun 2019, at 19:18, Geertjan Wielenga <ge...@apache.org>> wrote:
> 
> What version of Ant is installed needs to be checked.
> 
> Gj
> 
> On Mon, 3 Jun 2019 at 18:56, Jose Ch <pe...@gmail.com>> wrote:
> 
> Hi Mark,
> 
> I just compile the sources an hour ago without problems, I use
> openJ9-8u212 JDK and *ant -Dcluster.confg=release *to build the sources.
> Perhaps there is a newer commit that broke the building.
> 
> Regards
> José.
> 
> El lun., 3 jun. 2019 a las 11:35, mark stephens (<
> markstephens@idrsolutions.com<ma...@idrsolutions.com>>) escribió:
> 
> I redownloaded the master and ran under Java8 to check I had not
> donwloaded the wrong jars and I now get this
> 
> Kind Regards,
> 
> MArk
> 
> compile-bridge:
>     [mkdir] Created dir:
> /Users/markee/Downloads/netbeans-master/extide/o.apache.tools.ant.module/build/bridge-classes
>     [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 1.6
>    [repeat]
> /Users/markee/Downloads/netbeans-master/nbbuild/build/public-package-jars/org-netbeans-api-annotations-common.jar(org/netbeans/api/annotations/common/NonNull.class):
> warning: Cannot find annotation method 'when()' in type 'Nonnull': class
> file for javax.annotation.Nonnull not found
>    [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: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] 4 warnings
>   [nbmerge] Failed to build target: all-o.apache.tools.ant.module
> 
> 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.
> 
> Total time: 3 minutes 3 seconds
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org<ma...@netbeans.apache.org>
> For additional commands, e-mail: dev-help@netbeans.apache.org<ma...@netbeans.apache.org>
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

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




Re: Where am I going wrong in building NetBeans source

Posted by mark stephens <ma...@idrsolutions.com>.
I am running 1.10.0

https://github.com/apache/netbeans says to use Ant 1.9.9 or above

Kind Regards,

MArk





On 3 Jun 2019, at 19:18, Geertjan Wielenga <ge...@apache.org>> wrote:

What version of Ant is installed needs to be checked.

Gj

On Mon, 3 Jun 2019 at 18:56, Jose Ch <pe...@gmail.com>> wrote:

Hi Mark,

I just compile the sources an hour ago without problems, I use
openJ9-8u212 JDK and *ant -Dcluster.confg=release *to build the sources.
Perhaps there is a newer commit that broke the building.

Regards
José.

El lun., 3 jun. 2019 a las 11:35, mark stephens (<
markstephens@idrsolutions.com<ma...@idrsolutions.com>>) escribió:

I redownloaded the master and ran under Java8 to check I had not
donwloaded the wrong jars and I now get this

Kind Regards,

MArk

compile-bridge:
   [mkdir] Created dir:
/Users/markee/Downloads/netbeans-master/extide/o.apache.tools.ant.module/build/bridge-classes
   [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 1.6
  [repeat]
/Users/markee/Downloads/netbeans-master/nbbuild/build/public-package-jars/org-netbeans-api-annotations-common.jar(org/netbeans/api/annotations/common/NonNull.class):
warning: Cannot find annotation method 'when()' in type 'Nonnull': class
file for javax.annotation.Nonnull not found
  [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: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] 4 warnings
 [nbmerge] Failed to build target: all-o.apache.tools.ant.module

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.

Total time: 3 minutes 3 seconds


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org<ma...@netbeans.apache.org>
For additional commands, e-mail: dev-help@netbeans.apache.org<ma...@netbeans.apache.org>

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




Re: Where am I going wrong in building NetBeans source

Posted by Geertjan Wielenga <ge...@apache.org>.
What version of Ant is installed needs to be checked.

Gj

On Mon, 3 Jun 2019 at 18:56, Jose Ch <pe...@gmail.com> wrote:

> Hi Mark,
>
> I just compile the sources an hour ago without problems, I use
> openJ9-8u212 JDK and *ant -Dcluster.confg=release *to build the sources.
> Perhaps there is a newer commit that broke the building.
>
> Regards
> José.
>
> El lun., 3 jun. 2019 a las 11:35, mark stephens (<
> markstephens@idrsolutions.com>) escribió:
>
>> I redownloaded the master and ran under Java8 to check I had not
>> donwloaded the wrong jars and I now get this
>>
>> Kind Regards,
>>
>> MArk
>>
>> compile-bridge:
>>     [mkdir] Created dir:
>> /Users/markee/Downloads/netbeans-master/extide/o.apache.tools.ant.module/build/bridge-classes
>>     [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 1.6
>>    [repeat]
>> /Users/markee/Downloads/netbeans-master/nbbuild/build/public-package-jars/org-netbeans-api-annotations-common.jar(org/netbeans/api/annotations/common/NonNull.class):
>> warning: Cannot find annotation method 'when()' in type 'Nonnull': class
>> file for javax.annotation.Nonnull not found
>>    [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: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] 4 warnings
>>   [nbmerge] Failed to build target: all-o.apache.tools.ant.module
>>
>> 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.
>>
>> Total time: 3 minutes 3 seconds
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

Re: Where am I going wrong in building NetBeans source

Posted by Jose Ch <pe...@gmail.com>.
Hi Mark,

I just compile the sources an hour ago without problems, I use openJ9-8u212
JDK and *ant -Dcluster.confg=release *to build the sources. Perhaps there
is a newer commit that broke the building.

Regards
José.

El lun., 3 jun. 2019 a las 11:35, mark stephens (<
markstephens@idrsolutions.com>) escribió:

> I redownloaded the master and ran under Java8 to check I had not
> donwloaded the wrong jars and I now get this
>
> Kind Regards,
>
> MArk
>
> compile-bridge:
>     [mkdir] Created dir:
> /Users/markee/Downloads/netbeans-master/extide/o.apache.tools.ant.module/build/bridge-classes
>     [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 1.6
>    [repeat]
> /Users/markee/Downloads/netbeans-master/nbbuild/build/public-package-jars/org-netbeans-api-annotations-common.jar(org/netbeans/api/annotations/common/NonNull.class):
> warning: Cannot find annotation method 'when()' in type 'Nonnull': class
> file for javax.annotation.Nonnull not found
>    [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: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] 4 warnings
>   [nbmerge] Failed to build target: all-o.apache.tools.ant.module
>
> 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.
>
> Total time: 3 minutes 3 seconds
>
>

Re: Where am I going wrong in building NetBeans source

Posted by mark stephens <ma...@idrsolutions.com>.
I redownloaded the master and ran under Java8 to check I had not donwloaded the wrong jars and I now get this

Kind Regards,

MArk

compile-bridge:
    [mkdir] Created dir: /Users/markee/Downloads/netbeans-master/extide/o.apache.tools.ant.module/build/bridge-classes
    [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 1.6
   [repeat] /Users/markee/Downloads/netbeans-master/nbbuild/build/public-package-jars/org-netbeans-api-annotations-common.jar(org/netbeans/api/annotations/common/NonNull.class): warning: Cannot find annotation method 'when()' in type 'Nonnull': class file for javax.annotation.Nonnull not found
   [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: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] 4 warnings
  [nbmerge] Failed to build target: all-o.apache.tools.ant.module

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.

Total time: 3 minutes 3 seconds