It is probably pulling Java9+ from your env path.

In addition to setting nbjdk.home, try

export PATH=/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin:$PATH



On Fri, Sep 18, 2020 at 1:39 AM Jack W. <[email protected]> wrote:

> Weird. I created nbbuild/user.build.properties with one line:
>
> nbjdk.home=/usr/lib/jvm/java-1.8.0-openjdk-amd64
>
> but the build still failed saying it was trying to use JDK 9 code.
>
> With -Dpermit.jdk9.builds=true it succeeded.
>
> I must be losing my mind along with my hair.
>
> On Thu, Sep 17, 2020 at 11:34 PM John Mc <[email protected]> wrote:
>
> > Hi
> >
> > Apache NetBeans builds from JDK8 and above. That flag is only needed when
> > building from JDK9+.
> >
> > Regards
> >
> > John
> >
> > ---
> Jack Woehr               # Woehr's Asymptote: The ratio of the time spent
> Box 51, Golden CO 80402  # administering productivity software over the
> time
> http://www.softwoehr.com # saved by said software eventually approximates
> 1.
>

Reply via email to