rhino Questions

6

Solved

How do I accept a variable from the console with javascript in Rhino? anything similar to cin or scanf?
Pricecutting asked 22/12, 2010 at 11:52

6

Is there a way to access Java Maps and Lists as JavaScript Objects in Rhino? I have a Map which contains only other maps and lists of primitives and Strings, I'd like to pass this to a Rhino scrip...
Digitalism asked 18/5, 2011 at 14:36

3

Solved

There are several questions how to determine the javascript engine in browser. I have to write javascript code that has to run on rhino and nashorn. How can I determine if my code is running on r...
Marduk asked 9/6, 2016 at 6:46

5

I am confused about JavaScript engines right now. I know that V8 was a big deal because it compiled JavaScript to native code. Then I started reading about Mozilla SpiderMonkey, which from what I...
Waldman asked 26/1, 2010 at 3:14

2

I am trying to create a dynamic way to display solar data on a gltf imported model in three.js. The aim would be to associate different solid colours to different segments of the model and be able ...
Conjunctive asked 19/6, 2019 at 5:29

1

Im investigating de.undercouch:citeproc-java:2.0.0 within my current Android application. I cannot identify a ScriptEngine that works on Android with citeproc-java. my Gradle resembles this:- ext {...
Inspectorate asked 19/11, 2020 at 10:10

5

Solved

I have the following: ScriptEngineManager mgr = new ScriptEngineManager(); ScriptEngine jsEngine = mgr.getEngineByName("JavaScript"); jsEngine.eval("function getArray() {return [1,2,3,4,5];};"); O...
Berk asked 16/9, 2009 at 14:36

4

Solved

Which version of the ECMAScript standard does Java's JavaScript engine Rhino support, how much work is going into fixing bugs and keeping the implementation in sync with the latest standardized ver...
Woodpecker asked 15/7, 2011 at 0:26

4

Solved

How do I use Rhino return a string from Java to Javascript, all I get is org.mozilla.javascript.JavaNativeObject when I use var jsString = new java.lang.String("test"); inside my js file. Is th...
Incandescence asked 29/10, 2010 at 9:15

3

Solved

I'm using the Mozilla Rhino JavaScript emulator. It allows me to add Java methods to a context and then call them as if they were JavaScript functions. But I can't get it to work except when I use ...
Ausgleich asked 9/8, 2010 at 16:8

4

Solved

I have a simple Java class that has some methods: public class Utils { public void deal(String price, int amount) { // .... } public void bid(String price, int amount) { // .... } public vo...
Allyce asked 31/3, 2010 at 11:6

3

Solved

I'm unclear on the rules for how types are converted between Javascript and Java when using (Mozilla) Rhino. There's some specifics in the documentation about String: It's important to keep in ...
Obstinate asked 18/7, 2011 at 7:57

4

Solved

I have been using YuiCompressorTask (latest version) on my project for a very long time with no issues. After upgrading to Oracle's Java 1.7 package on OSX, hwoever, it breaks with the following ex...
Photographic asked 30/6, 2012 at 17:28

3

Solved

I need help getting CommonJS working on Java 7 and Rhino 1.7R3. Rhino 1.7R3 supports CommonJS modules: https://developer.mozilla.org/En/New_in_Rhino_1.7R3 And Java 7 comes bundled with Rhino 1...
Greenling asked 18/6, 2012 at 9:23

0

How could(if there's a way) i start an context without being attached with the current thread? I mean, i'm actually making an integration with Akka, i have ways to garantee thread affinity with Akk...
Dispense asked 14/10, 2018 at 6:23

3

Solved

I'm using Rhino 1.6r2 through the javax.script API. I know that the Rhino engine claims to be MULTITHREADED: "The engine implementation is internally thread-safe and scripts may execute concurrentl...
Cockneyfy asked 4/2, 2012 at 3:28

1

Solved

I'm trying to compile a JasperDesign to create a report programmatically. Since I need to include a Conditional Style in Javascript, I set the JasperDesign language accordingly: val jasperDesign =...
Education asked 15/7, 2018 at 12:36

3

Solved

By using Java Scripting API, I am able to execute JavaScript within Java. However, can someone please explain what I would need to add to this code in order to be able to call on functions that are...
Clayborne asked 4/4, 2014 at 7:27

6

I'm new to Play framework. Please explain the meaning of the below warning. Warning: node.js detection failed, sbt will use the Rhino based Trireme JavaScript engine instead to run JavaScript as...
Largish asked 18/7, 2015 at 14:0

7

I have a Java 7 project which makes a lot of use of Javascript for scripting various features. Until now I was using Rhino as script engine. I would now like to move to Java 8, which also means tha...
Chaplin asked 19/3, 2014 at 10:19

2

Solved

Is there a cleaner way to get the JSON representation of a Javascript object than with the following kludge? System.out.println(((ScriptableObject) scope).callMethod( cx, (Scriptable) scope.get("...
Muslin asked 23/4, 2012 at 21:35

2

Take the following test: public static class Scripted { public void setThing(List<?> list) { System.out.println("Set via list"); } public void setThing(Object[] array) { System.out.pri...
Tonicity asked 21/11, 2011 at 6:11

2

Solved

Is it possible with Rhino Server-side Javascript to locate and read the contents of an arbitrary local file?
Photocopier asked 30/8, 2011 at 20:16

0

Question is as title says. Working on a project that requires Sympy, Matplotlib and Tkinter to be imported through IronPython. The code will be run in Rhino, which uses Python 2.7. Is there any way...
Kaykaya asked 20/1, 2017 at 8:24

2

Solved

I'm calling a @JSFunction annotated method of a ScriptableObject The JavaScript file Target = Packages.com.acme.rhino.Target; function evaluate() { var t = Target(); t.addModifier("foobar", 1)...
Atom asked 28/1, 2013 at 12:16

© 2022 - 2024 — McMap. All rights reserved.