rhino Questions

1

Solved

I'm trying "latest and greatest" LESS version and it seems it does not work in rhino command-line version. I've done following Took latest rhino from here https://github.com/downloads/mo...
Osmunda asked 22/2, 2014 at 23:0

4

Solved

I'm using Rhino 1.7R4 and env.js 1.2 to run Javascript code inside Java I want to print from my Javascript code a string to the Java console. According to: http://evilroundabout.blogspot.com.au/2...
Clarkclarke asked 13/9, 2012 at 4:32

2

I have installed JavaScript Development Tools Plugin for Eclipse, but i am not able to run or debug a JavaScript Project. I want to debug using the inbuilt Rhino Interpreter, not using a web brow...
Lubalubba asked 25/4, 2012 at 9:22

3

I need (a) sandboxing, and (b) serializeable continuations. I'm exposing server-side game scripting to users, and it is extremely async, thus the callback pattern makes code un-readable and very un...
Guajardo asked 7/3, 2011 at 15:1

2

Solved

I'm seeing some odd behavior in the javax.scripting map implementation. The online examples show an example of adding to a list within the js environment: ScriptEngineManager mgr = new ScriptEng...
Halleyhalli asked 13/8, 2010 at 17:7

1

For some reason Unicode strings don't behave properly in Rhino, Mozilla's JavaScript engine. If I enter Unicode text in the REPL, or manipulate it, it returns back gibberish. js> 'тотальная киб...
Islander asked 13/12, 2012 at 14:19

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

4

Solved

I use Node.js for several jobs on my web apps and so far everthing's ok. But the Node.js uses Google's V8 as the default Javascript engine (JSE) and V8 runs exlusively on the x86 and ARM Instructi...
Mnemonics asked 4/12, 2010 at 10:35

3

Solved

I'm using the javax.script.* package of the JDK. Specifically, I'm using the JavaScript engine, which, from what I've read, seems to be based on a Mozilla-developed JavaScript-in-Java interpreter c...
Cyrillus asked 23/12, 2011 at 13:13

4

Solved

Basically I'm trying to pass a javaScript function to a Java method to act as a callback to the script. I can do it - sort of - but the object I receive is a sun.org.mozilla.javascript.internal.In...
Buckskins asked 15/5, 2010 at 23:24

4

Solved

I'm looking for a way to start playing around with Oracle's new Nashorn JavaScript Engine. I've DL'd the latest OpenJDK 8 (b65) and it appears that Rhino is still the only included script engine. ...
Forearm asked 17/11, 2012 at 4:49

1

Solved

I have business logic that is written in JavaScript, this code is shared with other non-android apps. What is the best way to use the functions in this piece of JavaScript from within a Service in...
Rightward asked 8/5, 2013 at 13:31

4

Solved

In JDK6, is there a way to load multiple scripts, each in a file, and have the one script reference a method of another script? Sort of like "include"?
Kneeland asked 16/3, 2009 at 13:14

2

Solved

I am running into the issue where Rhino throws the "Encountered code generation error while compiling script: generated bytecode for method exceeds 64K limit" exception when running Rhino via the j...
Doorframe asked 9/8, 2011 at 17:14

3

Solved

I have a problem with performance of Rhino javascript engine in Java7, shortly - my script (that parses and compiles texts) runs in Chrome around 50-100 times quicker than the same in Java7 Rhino s...
Wreathe asked 26/1, 2013 at 15:46

2

Solved

I am attempting to upgrade from WSO2 Carbon 3.0.0 to Carbon 4.0.3. Using Carbon 3.0.0, after installing the necessary features, I'm able to write JavaScript Mashup services that can call external J...
Yamada asked 12/2, 2013 at 20:25

2

Solved

Okay, I'm a little stumped. I'm probably missing something blatantly obvious but apparently I just can't see the forest for the trees: I'm trying to call a JavaScript function that expects its par...
Asterism asked 22/6, 2010 at 6:57

1

Solved

I've found a few questions about shuffling class definitions between Javascript and Java using Mozilla's Rhino. I've gotten far enough that this works: Javascript: new JavaAdapter(MyClass, {foo: ...
Czar asked 26/7, 2012 at 15:16

1

Solved

Lately I have been playing around with Java's ScriptEngine API, namely the javascript engine, which uses Rhino for everything.. I sumbled upon the fact that Rhino has no XMLHttpRequest. I was wonde...
Ehlke asked 21/12, 2012 at 6:50

4

I'm starting to use the dynamic rhinoscript feature in Java 6 for use by customers who are more likely to know Javascript than Java. What is the best way to pass a Map (associative array, javascri...
Paphian asked 22/9, 2011 at 18:7

4

Solved

I'm trying to load jquery into Rhino as demonstrated by this link here. But I keep getting the following error: line 1086: uncaught JavaScript runtime exception: TypeError: Cannot call method "imp...
Slapdash asked 23/2, 2011 at 9:27

2

Solved

(Disclaimer: using Rhino inside RingoJS) Let's say I have a document with an element , I don't see how I can append nodes as string to this element. In order to parse the string to xml nodes and t...
Oversew asked 28/10, 2012 at 12:17

6

Solved

I'm looking for a way to convert a Javascript Date object to a string. I'm converting my site from Ruby to server side Javascript, and I'm looking for something analogous to strftime in Ruby, C, an...
Remainderman asked 19/12, 2009 at 16:21

2

Solved

I'm using java to run a command line utility written in Rhino but if there is an error I need to return that error back to the shell so processing stops. How do I pass back an error code from Rhino...
Almaraz asked 25/6, 2009 at 7:42

3

Solved

i am using tomcat server and i have added a rhino engine to able some scripting abilities on my users. the second phase is to provide some debug environment. i know rhino has a debug API but...
Morrissey asked 31/10, 2009 at 9:11

© 2022 - 2024 — McMap. All rights reserved.