Re: Error building NetBeans
Peter Nabbefeld <[email protected]> Tue, 22 Nov 2016 12:20:43 +0100
| Newsgroups | gmane.comp.java.netbeans.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Geertjan, I tried this, running default target "build-nozip" in NetBeans, but get the following errors: error: Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider org.netbeans.modules.openide.util.ServiceProviderProcessor not found Failed to build target: all-openide.util.lookup /home/peter/NetBeansSources/main-golden/nbbuild/build.xml:438: The following error occurred while executing this line: /home/peter/NetBeansSources/main-golden/nbbuild/build.xml:433: The following error occurred while executing this line: /home/peter/NetBeansSources/main-golden/nbbuild/build.xml:468: The following error occurred while executing this line: /home/peter/NetBeansSources/main-golden/nbbuild/build.xml:451: The following error occurred while executing this line: /home/peter/NetBeansSources/main-golden/nbbuild/build.xml:433: The following error occurred while executing this line: /home/peter/NetBeansSources/main-golden/nbbuild/build.xml:468: The following error occurred while executing this line: /home/peter/NetBeansSources/main-golden/nbbuild/build.xml:451: The following error occurred while executing this line: /home/peter/NetBeansSources/main-golden/nbbuild/build.xml:433: The following error occurred while executing this line: /home/peter/NetBeansSources/main-golden/nbbuild/build.xml:468: The following error occurred while executing this line: /home/peter/NetBeansSources/main-golden/nbbuild/build.xml:451: The following error occurred while executing this line: /home/peter/NetBeansSources/main-golden/nbbuild/build.xml:433: The following error occurred while executing this line: /home/peter/NetBeansSources/main-golden/nbbuild/build.xml:480: The following error occurred while executing this line: /home/peter/NetBeansSources/main-golden/nbbuild/templates/common.xml:225: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 4 seconds) So now I just try to compile ServiceProviderProcessor. Kind regards Peter Am 22.11.2016 um 12:09 schrieb geertjan wielenga: > > http://wiki.netbeans.org/DevFaqAccessSourcesUsingMercurial > > Gj > > On 22-11-2016 12:06, Peter Nabbefeld wrote: >> core-main is a team repository, so I don't use it. I'm using main-golden. >> >> I tried (among others): >> download-all-extbins >> build-nbms >> >> However, I've obviously missed the "bootstrap" target, as it seems to >> work now (it's still running). >> >> Kind regards and thank You for Your help >> Peter >> >> >> Am 22.11.2016 um 12:49 schrieb Martin Entlicher: >>> It works fine for me, how do you build NetBeans? >>> I use: >>> core-main$ ant >>> to compile whole NetBeans. >>> But compilation of only openide.util.lookup works for me by these steps: >>> core-main$ ant clean >>> core-main$ cd nbbuild >>> nbbuild$ ant bootstrap >>> nbbuild$ cd ../openide.util.lookup >>> openide.util.lookup$ ant >>> >>> What repository are you using? >>> >>> Martin >>> >>> On 22.11.2016 11:39, Peter Nabbefeld wrote: >>>> Hi Martin, >>>> >>>> thank You, but it doesn't work, either: >>>> >>>> Compiling 3 source files to >>>> /home/peter/NetBeansSources/main-golden/openide.util.lookup/build/classes >>>> >>>> warning: [options] bootstrap class path not set in conjunction with >>>> -source 1.7 >>>> error: Bad service configuration file, or exception thrown while >>>> constructing Processor object: javax.annotation.processing.Processor: >>>> Provider org.netbeans.modules.openide.util.ServiceProviderProcessor >>>> not found >>>> /home/peter/NetBeansSources/main-golden/nbbuild/templates/common.xml:225: >>>> >>>> Compile failed; see the compiler error output for details. >>>> BUILD FAILED (total time: 0 seconds) >>>> >>>> Kind regards >>>> Peter >>>> >>>> >>>> Am 22.11.2016 um 12:36 schrieb Martin Entlicher: >>>>> The ServiceProviderProcessor source file is at >>>>> openide.util.lookup/src/org/netbeans/modules/openide/util/ServiceProviderProcessor.java >>>>> >>>>> >>>>> >>>>> You need to compile openide.util.lookup first. >>>>> >>>>> Martin >>>>> >>>>> On 22.11.2016 11:31, Peter Nabbefeld wrote: >>>>>> Hello, >>>>>> >>>>>> when trying to build NetBeans, I'm getting the following error: >>>>>> >>>>>> error: Bad service configuration file, or exception thrown while >>>>>> constructing Processor object: javax.annotation.processing.Processor: >>>>>> Provider org.netbeans.modules.openide.util.ServiceProviderProcessor >>>>>> not found >>>>>> /home/peter/NetBeansSources/main-golden/nbbuild/build.xml:198: The >>>>>> following error occurred while executing this line: >>>>>> /home/peter/NetBeansSources/main-golden/nbbuild/templates/common.xml:225: >>>>>> >>>>>> >>>>>> Compile failed; see the compiler error output for details. >>>>>> BUILD FAILED (total time: 3 minutes 30 seconds) >>>>>> >>>>>> Seems, I cannot compile openide.util without having the compiled >>>>>> classes of the annotation processors. >>>>>> >>>>>> Kind regards >>>>>> Peter >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > >