Hi Karl, I've not had issues myself.
What version of Java are you compiling against? is it just the "ant" command are you running, or are you trying something else? If using Java 9+ then you don't need the permitJdk9 flag anymore. Regards John On Mon, 22 Mar 2021 at 15:07, Karl Tauber <k...@jformdesigner.com> wrote: > Hi, > > Seems related to PR #2761 (Towards building on JDK11 and running on JDK8). > > If checking out commit 4d18a932 (just before #2761 was merged), and set > nbjdk.home to JDK8, then I can build. > > If checking out commit 8ec89eb2 (where #2761 was merged), build fails > with same error as below. > > Any ideas or hints what I could do? > > Thanks. > Karl > > > > Am 21.03.2021 um 18:52 schrieb Karl Tauber: > > Hi, > > > > I'm having a problem to build current master (fd26cb26) on Windows 10, > > which fails compiling openide.util.lookup with following message: > > > > Compiling 31 source files to ... > > Ignoring source, target and bootclasspath as release has been set > > error: release version 8 not supported > > Usage: javac <options> <source files> > > > > > > Have a fresh install of NetBeans 12.3 (NOT imported settings from 12.2) > > running on OpenJDK 11.0.2. > > nbjdk.home (in user.build.properties) points to the same JDK. > > No other stuff in user.build.properties. > > Removed "nbbuild\build" before building. > > > > > > Doing "Build IDE (No ZIP)" on "NetBeans Build System" project ends with: > > > > platform/openide.util.lookup.build-init: > > Created dir: D:\Java\netbeans-apache\nbbuild\build\public-package-jars > > Warning: module.javadoc.packages was already set to > > org.openide.util,org.openide.util.lookup > > Loading module list from > > C:\Users\charly\AppData\Local\Temp\nb-scan-cache-99a91e93-full.ser > > platform/openide.util.lookup.init: > > Created dir: > > > D:\Java\netbeans-apache\platform\openide.util.lookup\build\classes\META-INF > > All tests passed > > platform/openide.util.lookup.up-to-date: > > Compiling 31 source files to > > D:\Java\netbeans-apache\platform\openide.util.lookup\build\classes > > Ignoring source, target and bootclasspath as release has been set > > error: release version 8 not supported > > Usage: javac <options> <source files> > > use --help for a list of possible options > > Failed to build target: all-openide.util.lookup > > D:\Java\netbeans-apache\nbbuild\build.xml:639: The following error > > occurred while executing this line: > > D:\Java\netbeans-apache\nbbuild\build.xml:634: The following error > > occurred while executing this line: > > D:\Java\netbeans-apache\nbbuild\build.xml:669: The following error > > occurred while executing this line: > > D:\Java\netbeans-apache\nbbuild\build.xml:652: The following error > > occurred while executing this line: > > D:\Java\netbeans-apache\nbbuild\build.xml:634: The following error > > occurred while executing this line: > > D:\Java\netbeans-apache\nbbuild\build.xml:669: The following error > > occurred while executing this line: > > D:\Java\netbeans-apache\nbbuild\build.xml:652: The following error > > occurred while executing this line: > > D:\Java\netbeans-apache\nbbuild\build.xml:634: The following error > > occurred while executing this line: > > D:\Java\netbeans-apache\nbbuild\build.xml:681: The following error > > occurred while executing this line: > > D:\Java\netbeans-apache\nbbuild\templates\common.xml:207: Compile > > failed; see the compiler error output for details. > > BUILD FAILED (total time: 10 seconds) > > > > > > If I do a build on "Lookup API" project, it looks similar: > > > > ant -f D:\\Java\\netbeans-apache\\platform\\openide.util.lookup > > -Dcontinue.after.failing.tests=true build > > init-tasks: > > default.init: > > Updating property file: > > D:\Java\netbeans-apache\nbbuild\netbeans\moduleCluster.properties > > common-init: > > basic-init: > > projectized-common.-release.files: > > projectized-common.files-init: > > files-init: > > jdk-8-check: > > Build number : 20210321-fd26cb26e237 > > set-buildnumber: > > build-init: > > Warning: module.javadoc.packages was already set to > > org.openide.util,org.openide.util.lookup > > Loading module list from > > C:\Users\charly\AppData\Local\Temp\nb-scan-cache-99a91e93-full.ser > > init: > > All tests passed > > up-to-date: > > Compiling 31 source files to > > D:\Java\netbeans-apache\platform\openide.util.lookup\build\classes > > Ignoring source, target and bootclasspath as release has been set > > error: release version 8 not supported > > Usage: javac <options> <source files> > > use --help for a list of possible options > > D:\Java\netbeans-apache\nbbuild\templates\common.xml:207: Compile > > failed; see the compiler error output for details. > > BUILD FAILED (total time: 0 seconds) > > > > > > Same problem occurs when setting nbjdk.home to JDK 8 > > or when building in NB 12.2. > > > > > > Since building NB on GitHub Actions seems to work, there is probably > > something wrong on my system. > > > > Any ideas or hints? > > > > Thanks. > > Karl > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org > > For additional commands, e-mail: dev-h...@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-unsubscr...@netbeans.apache.org > For additional commands, e-mail: dev-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >