javax.script Questions
4
Whatever I try, getEngineByName() keeps returning null.
Here's my code:
final ScriptEngineManager manager = new ScriptEngineManager();
final ScriptEngine engine = manager.getEngineByName("js");
...
Kampong asked 2/5, 2015 at 21:39
5
import android.widget.Toast;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
public void bEqual(View v) throws ScriptException {
...
Distend asked 9/2, 2017 at 5:6
3
Solved
I am using javax.scripting to add support for running arbitrary user-uploaded JavaScripts on the server-side. Obviously I want to secure those scripts!
Rhino, on it's own, has a framework for secu...
Protozoal asked 28/8, 2009 at 13:49
2
Solved
When I run the following piece of code, the engine variable is set to null when I'm using OpenJDK 7 (java-7-openjdk-i386).
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManage...
Michi asked 7/4, 2012 at 11:56
1
I would like to use the excellent Sass as part of my build process. My build process is managed by Gradle. That means writing a plugin to run Sass. Sass is Ruby, and Gradle is in Groovy, but since ...
Missend asked 23/3, 2012 at 18:32
1
Some JavaScript files that have been developed for Rhino's shell use load() to load additional JavaScript files. I'm attempting to embed functionality from one of these Rhino JavaScript files using...
Laveralavergne asked 22/8, 2010 at 0:41
1
Solved
I'm using Java Scripting API to execute some external Python scripts from my Java application. The python scripts use sqlite3 module. Execution of the application is resulting in error
ImportError...
Gettogether asked 6/10, 2010 at 17:21
1
Solved
I'm trying to call a function in JavaScript via Java. This works fine when directly reading a script as a string but I'm using CompiledScripts.
When I do this with a compiled script it gives me m...
Sines asked 25/4, 2010 at 23:9
2
Solved
I'm trying to call Jython from a Java 6 application using javax.script:
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
public clas...
Canzona asked 20/4, 2010 at 0:23
2
I want to run some Javascript on my Java6 server - i.e. using the javax.script API, specifically the Rhino Script Engine. (Although another solution would be acceptable)
The script file is create...
Longitude asked 8/6, 2009 at 11:8
1
© 2022 - 2024 — McMap. All rights reserved.