Hi,

Am Mittwoch, den 02.10.2019, 23:40 +0300 schrieb mlist:
> On Wed, 02 Oct 2019 22:12:42 +0200 Matthias Bläsing wrote:
> 
> > you are building with JDK11 against an JDK8 by setting nbjdk.home. I
> > fixed this for me by switching to JDK8 as the build JDK.
> > 
> > My .nbbuild.properties has this entry:
> 
> Is that the same as src/nbbuild/user.build.properties or (if not) where
> do you put this file?

it is an alternative with the same syntax, just read from the home
directory (I regularly clean my build directory and the
user.build.properties get removed to then)

> > nbjdk.home=/home/matthias/bin/jdk1.8.0_201/
> > 
> > To build with that setting, prior to runnign the ant build, I set the
> > JAVA_HOME to the same directory:
> > 
> > export JAVA_HOME=/home/matthias/bin/jdk1.8.0_201/
> > 
> > and then run ant.
> 
> Have you looked at my output? I am also setting:

Yes, and no I did not read all 12.500 lines. Did you?

> JAVA_HOME=${JAVA_HOME}:/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/bin
> 
> Isn't that enough?

It sets the variable for the current shell, but it will not propagate
to subprocesses. What is more, I have never seen JAVA_HOME set like a
search path and it never contains the bin directory. So in your case I
would set JAVA_HOME as:

export JAVA_HOME=/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/

> Do you have 'bin' subdir in your 'jdk1.8.0_201' dir? Or is your javac
> directly in 'jdk1.8.0_201'?

> > That way I get a netbeans build with JDK8, as is our current build
> > configuration.
> 
> BTW I found some answer here on the list (from 09.Aug.2019) which says
> that using -Dpermit.jdk9.builds=true works and I tried it - it works
> indeed (build succeeds). Is that wrong and why?

That option allows you to build with a JDK 9 and newer. While netbeans
can be build with JDK 9, that is not the production configuration, so
you could introduce dependencies on newer implementations without
realising it, before the problem is caught by the CI pipeline.

HTH

Matthias



---------------------------------------------------------------------
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