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 <bwal...@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

Reply via email to