NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Error building NetBeans

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Developers
View previous topic :: View next topic  
Author Message
Peter Nabbefeld
Posted via mailing list.





PostPosted: Tue Nov 22, 2016 10:40 am    Post subject: Error building NetBeans Reply with quote

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:
Quote:
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:
Quote:
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


Back to top
Martin Entlicher
Posted via mailing list.





PostPosted: Tue Nov 22, 2016 10:50 am    Post subject: Error building NetBeans Reply with quote

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:
Quote:
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:
Quote:
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:
Quote:
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




Back to top
Peter Nabbefeld
Posted via mailing list.





PostPosted: Tue Nov 22, 2016 11:07 am    Post subject: Error building NetBeans Reply with quote

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:
Quote:
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:
Quote:
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:
Quote:
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:
Quote:
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






Back to top
Peter Nabbefeld
Posted via mailing list.





PostPosted: Tue Nov 22, 2016 11:08 am    Post subject: Error building NetBeans Reply with quote

Sorry, I've been too impatiently reporting success, but it failed again
(same error).

Kind regards
Peter


Am 22.11.2016 um 12:49 schrieb Martin Entlicher:
Quote:
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:
Quote:
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:
Quote:
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:
Quote:
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






Back to top
geertjan



Joined: 22 Jan 2014
Posts: 978

PostPosted: Tue Nov 22, 2016 11:10 am    Post subject: Error building NetBeans Reply with quote

http://wiki.netbeans.org/DevFaqAccessSourcesUsingMercurial

Gj

On 22-11-2016 12:06, Peter Nabbefeld wrote:
Quote:
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:
Quote:
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:
Quote:
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:
Quote:
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:
Quote:
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








Back to top
emi



Joined: 14 Aug 2009
Posts: 245

PostPosted: Tue Nov 22, 2016 11:16 am    Post subject: Error building NetBeans Reply with quote

I suspect you compiled multiple times with different compilers or very different branches or something.

Try an


ant clean


and also forcefully remove the nbbuild JARS:


rm -r nbbuild/build
rm -r nbbuild/netbeans





--emi





On Tue, Nov 22, 2016 at 1:08 PM, Peter Nabbefeld <address-removed ([email]address-removed[/email])> wrote:
Quote:
Sorry, I've been too impatiently reporting success, but it failed again (same error).

Kind regards
Peter


Am 22.11.2016 um 12:49 schrieb Martin Entlicher:
Quote:
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:
Quote:
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:
Quote:
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:
Quote:
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










Back to top
Peter Nabbefeld
Posted via mailing list.





PostPosted: Tue Nov 22, 2016 11:21 am    Post subject: Error building NetBeans Reply with quote

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:
Quote:

http://wiki.netbeans.org/DevFaqAccessSourcesUsingMercurial

Gj

On 22-11-2016 12:06, Peter Nabbefeld wrote:
Quote:
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:
Quote:
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:
Quote:
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:
Quote:
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:
Quote:
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










Back to top
Peter Nabbefeld
Posted via mailing list.





PostPosted: Tue Nov 22, 2016 11:51 am    Post subject: Error building NetBeans Reply with quote

Hi Emilian,

the problem may have been the free-form project-type mapping, as Clean
is mapped to a local-only clean, which has been a bit confusing. After
forcing "-cleanall", building worked. Obviously some module had a bad state.

Thank You for Your support!

Sth. strange I've noticed when running "build-nbms", I get the following
message:
Adding module NetBeans 6.0 ${locales} localization kit
(/home/peter/NetBeansSources/main-golden/nbbuild/nbms/org-netbeans-localization-kit-nb-${locales}.nbm)

Why NB 6.0? Well. it seems to work, but probably the version number
should be upgraded. ;-)

Kind regards
Peter



Am 22.11.2016 um 12:14 schrieb Emilian Bold:
Quote:
I suspect you compiled multiple times with different compilers or very
different branches or something.

Try an

ant clean

and also forcefully remove the nbbuild JARS:

rm -r nbbuild/build
rm -r nbbuild/netbeans



--emi

On Tue, Nov 22, 2016 at 1:08 PM, Peter Nabbefeld <address-removed
<mailto:address-removed>> wrote:

Sorry, I've been too impatiently reporting success, but it failed
again (same error).

Kind regards
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.Pr
<http://javax.annotation.processing.Pr>ocessor:
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.Pr
<http://javax.annotation.processing.Pr>ocessor:
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








Back to top
geertjan



Joined: 22 Jan 2014
Posts: 978

PostPosted: Tue Nov 22, 2016 11:54 am    Post subject: Error building NetBeans Reply with quote

I recommend following these instructions, i.e., not main-golden but
simply main:

http://wiki.netbeans.org/DevFaqAccessSourcesUsingMercurial

Gj

On 22-11-2016 12:49, Peter Nabbefeld wrote:
Quote:
Hi Emilian,

the problem may have been the free-form project-type mapping, as Clean
is mapped to a local-only clean, which has been a bit confusing. After
forcing "-cleanall", building worked. Obviously some module had a bad
state.

Thank You for Your support!

Sth. strange I've noticed when running "build-nbms", I get the
following message:
Adding module NetBeans 6.0 ${locales} localization kit
(/home/peter/NetBeansSources/main-golden/nbbuild/nbms/org-netbeans-localization-kit-nb-${locales}.nbm)

Why NB 6.0? Well. it seems to work, but probably the version number
should be upgraded. ;-)

Kind regards
Peter



Am 22.11.2016 um 12:14 schrieb Emilian Bold:
Quote:
I suspect you compiled multiple times with different compilers or very
different branches or something.

Try an

ant clean

and also forcefully remove the nbbuild JARS:

rm -r nbbuild/build
rm -r nbbuild/netbeans



--emi

On Tue, Nov 22, 2016 at 1:08 PM, Peter Nabbefeld <address-removed
<mailto:address-removed>> wrote:

Sorry, I've been too impatiently reporting success, but it failed
again (same error).

Kind regards
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.Pr
<http://javax.annotation.processing.Pr>ocessor:
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.Pr
<http://javax.annotation.processing.Pr>ocessor:
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










Back to top
emi



Joined: 14 Aug 2009
Posts: 245

PostPosted: Tue Nov 22, 2016 12:16 pm    Post subject: Error building NetBeans Reply with quote

@Geertjan: actually, I believe it is a flaw of our build system.

ant clean doesn't really clean everything and I've often times manually removed the above mentioned folder just to make sure the build really runs properly.


Of course, if one would make a fresh repository clone for each build then that wiki link would make sense. But in reality you have various compilation leftovers that confuse the build system on subsequent builds.



--emi





On Tue, Nov 22, 2016 at 1:53 PM, geertjan wielenga <address-removed ([email]address-removed[/email])> wrote:
Quote:

I recommend following these instructions, i.e., not main-golden but simply main:

http://wiki.netbeans.org/DevFaqAccessSourcesUsingMercurial

Gj

On 22-11-2016 12:49, Peter Nabbefeld wrote:
Quote:
Hi Emilian,

the problem may have been the free-form project-type mapping, as Clean is mapped to a local-only clean, which has been a bit confusing. After forcing "-cleanall", building worked. Obviously some module had a bad state.

Thank You for Your support!

Sth. strange I've noticed when running "build-nbms", I get the following message:
 Adding module NetBeans 6.0 ${locales} localization kit (/home/peter/NetBeansSources/main-golden/nbbuild/nbms/org-netbeans-localization-kit-nb-${locales}.nbm)

Why NB 6.0? Well. it seems to work, but probably the version number should be upgraded.  Wink

Kind regards
Peter



Am 22.11.2016 um 12:14 schrieb Emilian Bold:
Quote:
I suspect you compiled multiple times with different compilers or very
different branches or something.

Try an

ant clean

and also forcefully remove the nbbuild JARS:

rm -r nbbuild/build
rm -r nbbuild/netbeans



--emi

On Tue, Nov 22, 2016 at 1:08 PM, Peter Nabbefeld <address-removed ([email]address-removed[/email])
<mailto:address-removed ([email]address-removed[/email])>> wrote:

    Sorry, I've been too impatiently reporting success, but it failed
    again (same error).

    Kind regards
    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.Pr
<http://javax.annotation.processing.Pr>ocessor:
            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.Pr
<http://javax.annotation.processing.Pr>ocessor:
                    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














Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Developers All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo