Top "Rhino" questions

Mozilla Rhino is a JavaScript interpreter written in Java.

Call external javascript functions from java code

By using Java Scripting API, I am able to execute JavaScript within Java. However, can someone please explain what I …

java javascript rhino function-call
Convert a date to string in Javascript

I'm looking for a way to convert a Javascript Date object to a string. I'm converting my site from Ruby …

javascript datetime rhino
ReferenceError: "alert" is not defined

I am trying to call a java script function from java code. Here is my Java code public static void …

java javascript rhino
How do I convert a polysurface to a mesh in Rhino3d

I extruded a curve then caped it and converted to a poly-surface. now I want to convert to a mesh, …

mesh rhino rhino3d
How to convert Java Map to a basic Javascript object?

I'm starting to use the dynamic rhinoscript feature in Java 6 for use by customers who are more likely to know …

java javascript rhino
Javascript Engines Advantages

I am confused about JavaScript engines right now. I know that V8 was a big deal because it compiled JavaScript …

javascript v8 rhino spidermonkey javascript-engine
How to convert Rhino-JavaScript arrays to Java-Arrays

I have the following: ScriptEngineManager mgr = new ScriptEngineManager(); ScriptEngine jsEngine = mgr.getEngineByName("JavaScript"); jsEngine.eval("function getArray() {return [1,2,3,4,5];};"); Object result = …

java scripting rhino jsr223
JavaScript (Rhino) use library or include other scripts

In JDK6, is there a way to load multiple scripts, each in a file, and have the one script reference …

java javascript rhino
Switching from Rhino to Nashorn

I have a Java 7 project which makes a lot of use of Javascript for scripting various features. Until now I …

rhino java-8 nashorn
Rhino: How to call JS function from Java

I'm using Mozilla Rhino 1.7r2 (not the JDK version), and I want to call a JS function from Java. My …

java javascript rhino