Hello,
You might want to tweak which ant is used.
In the options>Java>Ant (first tab) you can set the ant home to any
directory you want.
You could adapt or wrap the ant script (depending on your OS), By setting
the JAVA_HOME environment variable to the jdk of your liking.
A strategy is to rename
Le 2023-11-14 à 10 h 35, Tom Eicher a écrit :
Testing, with Java8, on command line "ant dist" builds my ear,
whereas with Java11 I get errors like cannot find symbol
javax.annotation.Generated which is probably expected.
Alternatively, did you tried adding the `javax.annotation-api` JAR file
Hello,
so NB19 needs Java11+ to run, which is fine.
But (for now) I need to run my ant task with Java8,
but it seems ant is always launched within the JVM
that runs NB.
Testing, with Java8, on command line "ant dist" builds my ear,
whereas with Java11 I get errors like
cannot find symbol javax.