Hi, not sure what mac OS needs, but on Linux, I would set/check the two environment variables:
$PATH $JAVA_HOME Both can influence which java runtime is found and is used to build applications. Maybe one of these is set to the wrong value on your system? Matthias PS: Yes, building on JDK 15 does not work Am Dienstag, den 29.12.2020, 21:16 +0000 schrieb John Mc: > Hi, > > I wanted to review a PR, as its been a while, and I updated my fork > of the > latest Apache NetBeans, and I am getting the following error, when I > try > either `ant clean` or `ant` - I checked the email archives and I > haven't > spotted this error reported before, and I'm struggling to find where > this > error message is coming from. > > prepare-vanilla-javac: > > [delete] Deleting directory > /Users/john/codebase/netbeans/nbbuild/build/langtools > > [mkdir] Created dir: > /Users/john/codebase/netbeans/nbbuild/build/langtools > > [unzip] Expanding: > /Users/john/codebase/netbeans/nbbuild/external/langtools-9.zip into > /Users/john/codebase/netbeans/nbbuild/build/langtools > > Java 15 has removed Nashorn, you must provide an engine for running > JavaScript yourself. GraalVM JavaScript currently is the preferred > option. > > > BUILD FAILED > > /Users/john/codebase/netbeans/nbbuild/build.xml:1301: The following > error > occurred while executing this line: > > /Users/john/codebase/netbeans/nbbuild/build.xml:258: The following > error > occurred while executing this line: > /Users/john/codebase/netbeans/nbbuild/build/langtools/make/build.xml: > 91: > Unable to create javax script engine for javascript > > john@Johns-MacBook-Pro netbeans % javac --version > > javac 11.0.5 > > I'm running Java 11 so I have also tried including the argument > `-Dpermit.jdk9.builds=true` but this didn't help. > > Anyone else got this issue, or have ideas on what I need to do to get > past > it? > > Regards > > John --------------------------------------------------------------------- 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
