Anyway to run UglifyJS2 without node.js? Say I would like to run it in a JVM process using JavaScript script engine. How to do that?...
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 have a script that works just fine in Chrome but crashes on Nashorn with:     (Error: Namespace "com.cognitect.transit.util" already declared. in  at line number 19664 at column number 6   That error is not very useful, as that line contain...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.