I am trying to write a library that will let me execute JSON Logic rules via the Nashorn Javascript engine.  My problem right now is specifically around the JSObject wrapper I've created to handle moving data from Java/Kotlin into the scripting e...
Assume the following API:  package nashorn.test;  public class API {      public static void test(String string) {         throw new RuntimeException("Don't call this");     }      public static void test(Integer... args) {         System...
Consider following code sample:  import javax.script.ScriptEngine; import javax.script.ScriptEngineManager;  public class Tester {    public static void main( String[] args ) throws Exception {       ScriptEngine se = new ScriptEngineManager().getEng...
i try to execute this simple short scripts to test nashorn :  basedir="/cassandara2/cassandra" ba="/cassandara2/cassandra/lib/ST4-4.0.8.jar"; lib = ""; lib += '      <root url="jar://' + ba.replace(basedir, "...
I'm reading about new Java 8 features and came to know it comes with Nashorn (Javascript engine). Can someone explain me why would/should I use a Javascript engine inside Java. What programming problems it would solve ? any examples   Thanks, Rav...
I have read that Nashorn supports some options but it seems all of them are undocumented.  They can be used by setting system properties but they are global. I want to set them programmatically for a single engine instance.  Here you can read it is p...
According to IEEE 754 NaN equal comparison with any number should be false (both Java and JavaScript languages). But in the following code, using javax scriptEngine for JavaScript, a variable set to NaN compared with itself returns true.  import java...
I use  in my gwt.xml module and put  guava-18.0.jar guava-gwt-18.0.jar     Tracing compile failure path for type 'com.google.common.collect.Collections2'       [ERROR] Errors in 'com/google/common/collect/Collections2.java'          [...
I am interested in a portable way of writing a string to standard output, without implicit newlines added to the end, ideally forcing encoding to UTF-8, that works with either of   jrunscript (from any JDK) Rhino node.js   My current code tries to de...
I have this engine which runs user-input (trusted) javascript function to filter some data for them using Nashorn. Don't want to go into the details of the requirements but let's say it's some sort of plugin system.  This javascript gets...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.