About using build.properties and nbjdk.home

There's a thread from last year, https://lists.apache.org/thread/4qvk880rkn4norzk7t9tt92ppmnf48kp, where it was not sufficient to set nbjdk.home, JAVA_HOME also had to be set.

I was using nbbuild/user.build.properties, not ~/.nbbuild.properties; don't know if that makes a difference.

-ernie

On 23/02/04 2:43 PM, Matthias Bläsing wrote:
Hi Brad,

Am Samstag, dem 04.02.2023 um 16:27 -0600 schrieb Brad Walker:
I can't figure out what options to use so that doing a build with Ant
compiles with a different compiler. I've looked all over the web page and
can't seem to find it there.

So 2 questions:

1 - Does compiling Netbeans out of the box continue to Java 8 as the
compiler?
You'll need JDK 11. Most modules still build for 8, but they use the
javac release flag to do that. I don't remember when that change was
made, but it was some time ago.

2 - What option would I pass to Ant in order for it to use a different
compiler?
Creating a file ".nbbuild.properties" in your home directory with the
contents:

nbjdk.home=<PATH_TO_YOUR_JDK>

should do it.

Or you ensure, that that file das not exists/the property is not set
and put your target JDK as first element onto $PATH and set $JAVA_HOME
accordingly.

HTH

Matthias

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



Reply via email to