You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Brad Walker <bw...@musings.com> on 2019/03/29 22:48:22 UTC

building github netbeans..

I'm trying to build the Netbeans version contained in Github and I'm having
a problem..

Here is the error that I see..

...
-prepare-mandatory-files-for-module:
[createlicensesummary] All tests passed

up-to-date:

compile:
 [nb-javac] Compiling 21 source files to
/home/bwalker/src/incubator-netbeans/ide/xml.catalog/build/classes
   [repeat] warning: [options] bootstrap class path not set in conjunction
with -source 1.6
   [repeat]
/home/bwalker/src/incubator-netbeans/ide/xml.catalog/src/org/netbeans/modules/xml/catalog/impl/sun/Catalog.java:33:
error: cannot access NbCatalogResolver
   [repeat] import org.apache.xml.resolver.tools.NbCatalogResolver;
   [repeat]                                     ^
   [repeat]   bad class file:
/home/bwalker/src/incubator-netbeans/nbbuild/build/public-package-jars/org-apache-xml-resolver.jar(org/apache/xml/resolver/tools/NbCatalogResolver.class)
   [repeat]     class file has wrong version 54.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-xml.catalog

BUILD FAILED
/home/bwalker/src/incubator-netbeans/nbbuild/build.xml:514: The following
error occurred while executing this line:
/home/bwalker/src/incubator-netbeans/nbbuild/build.xml:509: The following
error occurred while executing this line:
/home/bwalker/src/incubator-netbeans/nbbuild/build.xml:556: The following
error occurred while executing this line:
/home/bwalker/src/incubator-netbeans/nbbuild/templates/common.xml:201:
Compile failed; see the compiler error output for details.

Total time: 39 seconds
bwalker@brads-T460s:~/src/incubator-netbeans$

Any ideas about what might be going on?

-brad w.

Re: building github netbeans..

Posted by Tim Boudreau <ni...@gmail.com>.
You compiled some of it with a newer JDK's javac (or source level), and
some with an older one. My guess is you started a build, some of the
tooling got compiled, then in failed with an error about the JDK being too
new, and so you switched JDKs and tried to keep going.

Hmm, OR, you are using a JDK that's too old for the class files in one of
the binary libraries used in the build.

Do a clean, make sure you are using the right JDK (or modified the
properties file appropriately) and build again (there used to be an 'ant
real-clean' target to ensure everything was cleaned, but I think that's no
longer needed).

-Tim

On Fri, Mar 29, 2019 at 6:48 PM Brad Walker <bw...@musings.com> wrote:

> I'm trying to build the Netbeans version contained in Github and I'm having
> a problem..
>
> Here is the error that I see..
>
> ...
> -prepare-mandatory-files-for-module:
> [createlicensesummary] All tests passed
>
> up-to-date:
>
> compile:
>  [nb-javac] Compiling 21 source files to
> /home/bwalker/src/incubator-netbeans/ide/xml.catalog/build/classes
>    [repeat] warning: [options] bootstrap class path not set in conjunction
> with -source 1.6
>    [repeat]
>
> /home/bwalker/src/incubator-netbeans/ide/xml.catalog/src/org/netbeans/modules/xml/catalog/impl/sun/Catalog.java:33:
> error: cannot access NbCatalogResolver
>    [repeat] import org.apache.xml.resolver.tools.NbCatalogResolver;
>    [repeat]                                     ^
>    [repeat]   bad class file:
>
> /home/bwalker/src/incubator-netbeans/nbbuild/build/public-package-jars/org-apache-xml-resolver.jar(org/apache/xml/resolver/tools/NbCatalogResolver.class)
>    [repeat]     class file has wrong version 54.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-xml.catalog
>
> BUILD FAILED
> /home/bwalker/src/incubator-netbeans/nbbuild/build.xml:514: The following
> error occurred while executing this line:
> /home/bwalker/src/incubator-netbeans/nbbuild/build.xml:509: The following
> error occurred while executing this line:
> /home/bwalker/src/incubator-netbeans/nbbuild/build.xml:556: The following
> error occurred while executing this line:
> /home/bwalker/src/incubator-netbeans/nbbuild/templates/common.xml:201:
> Compile failed; see the compiler error output for details.
>
> Total time: 39 seconds
> bwalker@brads-T460s:~/src/incubator-netbeans$
>
> Any ideas about what might be going on?
>
> -brad w.
>
-- 
http://timboudreau.com

Re: building github netbeans..

Posted by László Kishalmi <la...@gmail.com>.
It could be a datetime issue. Use a recursive touch in the whole work dir
to fix that.

On Sat, Mar 30, 2019, 00:42 John McDonnell <mc...@gmail.com> wrote:

> Hi Brad,
>
> I thought this error might have been on the confluence but cant see it.
>
> It's one of 3 things.
> 1. Incorrect java version,
> 2. Incorrect ant version
> 3.  not everything is cloned correctly.
>
> Can you check the read me? and maybe try recloning if all is fine?
>
> Failing that, check the dev mailing list archives:
>
> https://lists.apache.org/list.html?dev@netbeans.apache.org:lte=2y:The%20following%20error%20occurred%20while%20executing%20this%20line%3A
>
> You'll hopefully see an answer there.
>
> John
>
>
>
> On Fri, 29 Mar 2019 at 22:48, Brad Walker <bw...@musings.com> wrote:
>
> > I'm trying to build the Netbeans version contained in Github and I'm
> having
> > a problem..
> >
> > Here is the error that I see..
> >
> > ...
> > -prepare-mandatory-files-for-module:
> > [createlicensesummary] All tests passed
> >
> > up-to-date:
> >
> > compile:
> >  [nb-javac] Compiling 21 source files to
> > /home/bwalker/src/incubator-netbeans/ide/xml.catalog/build/classes
> >    [repeat] warning: [options] bootstrap class path not set in
> conjunction
> > with -source 1.6
> >    [repeat]
> >
> >
> /home/bwalker/src/incubator-netbeans/ide/xml.catalog/src/org/netbeans/modules/xml/catalog/impl/sun/Catalog.java:33:
> > error: cannot access NbCatalogResolver
> >    [repeat] import org.apache.xml.resolver.tools.NbCatalogResolver;
> >    [repeat]                                     ^
> >    [repeat]   bad class file:
> >
> >
> /home/bwalker/src/incubator-netbeans/nbbuild/build/public-package-jars/org-apache-xml-resolver.jar(org/apache/xml/resolver/tools/NbCatalogResolver.class)
> >    [repeat]     class file has wrong version 54.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-xml.catalog
> >
> > BUILD FAILED
> > /home/bwalker/src/incubator-netbeans/nbbuild/build.xml:514: The following
> > error occurred while executing this line:
> > /home/bwalker/src/incubator-netbeans/nbbuild/build.xml:509: The following
> > error occurred while executing this line:
> > /home/bwalker/src/incubator-netbeans/nbbuild/build.xml:556: The following
> > error occurred while executing this line:
> > /home/bwalker/src/incubator-netbeans/nbbuild/templates/common.xml:201:
> > Compile failed; see the compiler error output for details.
> >
> > Total time: 39 seconds
> > bwalker@brads-T460s:~/src/incubator-netbeans$
> >
> > Any ideas about what might be going on?
> >
> > -brad w.
> >
>

Re: building github netbeans..

Posted by John McDonnell <mc...@gmail.com>.
Hi Brad,

I thought this error might have been on the confluence but cant see it.

It's one of 3 things.
1. Incorrect java version,
2. Incorrect ant version
3.  not everything is cloned correctly.

Can you check the read me? and maybe try recloning if all is fine?

Failing that, check the dev mailing list archives:
https://lists.apache.org/list.html?dev@netbeans.apache.org:lte=2y:The%20following%20error%20occurred%20while%20executing%20this%20line%3A

You'll hopefully see an answer there.

John



On Fri, 29 Mar 2019 at 22:48, Brad Walker <bw...@musings.com> wrote:

> I'm trying to build the Netbeans version contained in Github and I'm having
> a problem..
>
> Here is the error that I see..
>
> ...
> -prepare-mandatory-files-for-module:
> [createlicensesummary] All tests passed
>
> up-to-date:
>
> compile:
>  [nb-javac] Compiling 21 source files to
> /home/bwalker/src/incubator-netbeans/ide/xml.catalog/build/classes
>    [repeat] warning: [options] bootstrap class path not set in conjunction
> with -source 1.6
>    [repeat]
>
> /home/bwalker/src/incubator-netbeans/ide/xml.catalog/src/org/netbeans/modules/xml/catalog/impl/sun/Catalog.java:33:
> error: cannot access NbCatalogResolver
>    [repeat] import org.apache.xml.resolver.tools.NbCatalogResolver;
>    [repeat]                                     ^
>    [repeat]   bad class file:
>
> /home/bwalker/src/incubator-netbeans/nbbuild/build/public-package-jars/org-apache-xml-resolver.jar(org/apache/xml/resolver/tools/NbCatalogResolver.class)
>    [repeat]     class file has wrong version 54.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-xml.catalog
>
> BUILD FAILED
> /home/bwalker/src/incubator-netbeans/nbbuild/build.xml:514: The following
> error occurred while executing this line:
> /home/bwalker/src/incubator-netbeans/nbbuild/build.xml:509: The following
> error occurred while executing this line:
> /home/bwalker/src/incubator-netbeans/nbbuild/build.xml:556: The following
> error occurred while executing this line:
> /home/bwalker/src/incubator-netbeans/nbbuild/templates/common.xml:201:
> Compile failed; see the compiler error output for details.
>
> Total time: 39 seconds
> bwalker@brads-T460s:~/src/incubator-netbeans$
>
> Any ideas about what might be going on?
>
> -brad w.
>