Hi all,

Clearly JDK 8 works for building NetBeans.

However, we also have this flag:

-Dpermit.jdk9.builds=true

For which JDKs can that be used and what do we need to do to avoid needing
that.

Here I get the impression that either JDK 8 or 11 is needed:

http://netbeans.apache.org/download/dev/index.html

I suppose because these two are LTS.

With that flag, I was able to build 12.1 with JDK 11.0.6:

openjdk version "11.0.6" 2020-01-14 LTS

OpenJDK Runtime Environment Zulu11.37+17-CA (build 11.0.6+10-LTS)

OpenJDK 64-Bit Server VM Zulu11.37+17-CA (build 11.0.6+10-LTS, mixed mode)

But not with JDK 14:

openjdk version "14" 2020-03-17

OpenJDK Runtime Environment Zulu14.27+1-CA (build 14+36)

OpenJDK 64-Bit Server VM Zulu14.27+1-CA (build 14+36, mixed mode, sharing)

Also not with JDK 13:

openjdk version "13.0.4" 2020-07-14

OpenJDK Runtime Environment Zulu13.33+25-CA (build 13.0.4+8-MTS)

OpenJDK 64-Bit Server VM Zulu13.33+25-CA (build 13.0.4+8-MTS, mixed mode,
sharing)

We can of course simply say that one can build NetBeans with an LTS release
of the JDK from 8 onwards, which would currently be 8 and 11.

I don't know the reason, maybe it is this:

-do-compile:

 [nb-javac] Compiling 2 source files to
/Users/geertjanwielenga/Downloads/netbeans-12-1/platform/openide.util.ui.svg/build/classes

   [repeat] warning: [options] bootstrap class path not set in conjunction
with -source 6

   [repeat] error: Source option 6 is no longer supported. Use 7 or later.

   [repeat] warning: [options] target value 7 is obsolete and will be
removed in a future release

   [repeat] warning: [options] To suppress warnings about obsolete options,
use -Xlint:-options.

Anyway, thoughts welcome, though not super urgent since the two LTS JDKs
work fine.

Gj

Reply via email to