Playing With Nashorn Scripting Features

Nashorn is shipped with Java 8 and can be used as a system scripting language with seamless Java integration.

One of the killer features is the IDE support. In contrary to batch files or shell scripts, Nashorn is JavaScript (ECMA-262, edition 5.1) and is supported in the IDE with syntax highlighting, code-completion and direct integration with Java ecosystem. Even executable native system scripts can be easily debugged:

Static Page Generator (SPG) is another example of executable Nashorn script example.

See also other screencasts at: http://tv.adam-bien.com or subscribe to http://www.youtube.com/user/bienadam.

See you at Java EE Workshops at Munich Airport, Terminal 2, particularly at HTML 5 for Java Developers or Virtual Dedicated Workshops / consulting

Comments:

it's funny, that I cannot see the HTML5/JS tab in Options. Nor I have the JS Library project available. Can it be, that you are using some plugins? I have NetBeans 8.0.2 full installation.

Thanks!

Posted by zemiak on April 20, 2015 at 06:12 PM CEST #

and the answer is: use one of the recent nightly builds

Posted by zemiak on April 22, 2015 at 02:30 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments
License