Hi Geertjan,

I'm not sure what you are asking. As long as we want to support running
on JDK8, building it with JDK 8 is a hard requirement.

The JDK 9+ changed classes. These changes follow the normal java
requirements - they are backwards compatible. In this case it means,
code thas was build on JDK 8 will still run on JDK 9+. The reverse is
not true (this was my experience with -source and -target, not sure if
-release makes this better).

For the build error, yes that module can be moved to source level 1.8.
But the problem goes deeper. For the fun of it I just tried building
with JDK 14 and netbeans dev does not even bootstrap because it looks
like langtools is tried to be build and that fails.

Greetings

Matthias

Am Donnerstag, den 27.08.2020, 16:14 +0200 schrieb Geertjan Wielenga:
> 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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to