Is it possible to reference the javax.script.ScriptEngine library when developing an android application? If not is there anyway possible to evaluate a javascript expression in android?...
Has anybody ever faced a memory leak problem with IActiveScriptParse32::ParseScriptText when using it in C#? I need a ScriptEngine that is able to parse JavaScript-Code. (Everything works fine, except the used memory)  The problem is, that the longer...
I need to use classes from a jar file inside JavaScript. I'm using JavaScript through Java ScriptEngine and would like to do something similar to what I did with Jython here,      import org.python.core.Py;     import org.python.core.PySystemStat...
I am trying to use ScriptEngineManager and ScriptEngine to execute some JavaScript code with Java. I use Java 8 I am executing this code under Karaf OSGi.  The example I used works fine in a sample Java Class, but packing it in a bundle gives me this...
I use Java's ScriptEngine to execute JavaScript Code. I use the Invocable Interface, so that I can use the Script Code as a normal Java Object implementing a Java Interface.  If the JavaScript Code    is invalid does not follow the interface (mis...
I'm using Java 8.   I'm not a java expert (haven't looked at java since college 10 years ago)  I create an instance of a ScriptEngine (Nashorn if it matters). I use it to eval several javascript files.  The script chugs along quite happil...
I am trying to develop and application with jsoup and java to scrap some web pages. So what I am hoping to make is to let jsoup get the page source first and the on the page source let the below javascript get executed and return back a result.  $(&#...
Working on a java based game, using javax.script for AI;  public class AI implements Runnable { private boolean alive = true;  String scriptStr; ScriptEngine scriptEngine; ScriptContext scriptContext; Bindings engineScope;  public AI() {     ScriptEn...
There is a strange difference when I evaluate a nashorn script with or without bindings: without bindings there is no problem invoking a function, but with the bindings the function is not found. Here is an example:  public class SimpleNashornTester...
I'm trying to evaluate this expression:  ScriptEngineManager sem = new ScriptEngineManager ()  ScriptEngine scriptEngine = sem.getEngineByName("js") ; String expr = "true ^ true"; Boolean obj = (Boolean) scriptEngine.eval(expr);...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.