You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by John Mc <mc...@gmail.com> on 2020/12/29 21:16:52 UTC

Java 15 has removed Nashorn, you must provide an engine for running JavaScript yourself. GraalVM JavaScript currently is the preferred option.

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

Re: Java 15 has removed Nashorn, you must provide an engine for running JavaScript yourself. GraalVM JavaScript currently is the preferred option.

Posted by Eric Bresie <eb...@gmail.com>.
Silly question but is there a ticket to eventually account for handle when
 nashorn is  removed?  Assume this doesn’t matter in most cases until Java
15 is used in compiling things but still wondering if and when this would
need to be addressed?

Eric

On Tue, Dec 29, 2020 at 7:42 PM John Mc <mc...@gmail.com> wrote:

> Thanks Matthias,
>
> It's been a while since I've done anything Java related on this laptop, and
> somehow since I last did anything and today, my JAVA_HOME variable was no
> longer set.
>
> Regards
>
> John
>
> On Tue, 29 Dec 2020 at 21:51, Matthias Bläsing <mb...@doppel-helix.eu>
> wrote:
>
> > 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: dev-unsubscribe@netbeans.apache.org
> > For additional commands, e-mail: dev-help@netbeans.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
> >
> >
>
-- 
Eric Bresie
ebresie@gmail.com

Re: Java 15 has removed Nashorn, you must provide an engine for running JavaScript yourself. GraalVM JavaScript currently is the preferred option.

Posted by John Mc <mc...@gmail.com>.
Thanks Matthias,

It's been a while since I've done anything Java related on this laptop, and
somehow since I last did anything and today, my JAVA_HOME variable was no
longer set.

Regards

John

On Tue, 29 Dec 2020 at 21:51, Matthias Bläsing <mb...@doppel-helix.eu>
wrote:

> 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: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: Java 15 has removed Nashorn, you must provide an engine for running JavaScript yourself. GraalVM JavaScript currently is the preferred option.

Posted by Matthias Bläsing <mb...@doppel-helix.eu>.
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: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists