Are there any good tutorials or the likes for getting stated with this? I have yet to do any scripting in Java, though I am familiar with JavaScript already. Thanks. Essentially, I want to use JavaScript/XML to handle part of my project. I know Java 8 introduced JavaScript support via Nashorn. I want to learn how this works. I know it involves using javax.script, but I don't know how that package works nor do I understand how Nashorn works.
I played a lot with nashorn in the last couple of weeks. I wrote all my findings in an example-driven tutorial:
http://winterbe.com/posts/2014/04/05/java8-nashorn-tutorial/
It covers the following topics:
I hope it's helpful for you to start with Nashorn.