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 in C:/Scripts/Jsfunctions.js  import javax.script....
I'd like to use the Rhino JavaScript compiler to compile some JavaScript to .class bytecode files for use in a project. It seems like this should already exist, since there are groovyc, netrexxc, and jythonc tasks for Groovy, NetREXX(!) and Jytho...
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 called Rhino.  What I'm hoping to acc...
I'm trying to get require.js to load modules on the server-side with Java 6 and Rhino.  I'm able to load require.js itself just fine. Rhino can see the require() function. I can tell because Rhino complains that it can't find the function...
Here is my situation:  I have access to a Rhino Context object in a Java class.  I want to read in a bunch of .js files and pass them along to the Rhino context to have them evaluated.  I'm not really interested in having the functions in the .js...
I noticed ubuntu 10.04 removed the spidermonkey package. Rhino looks like it's still there though. What are the differences between rhino and spidermonkey (besides what language they're written in). And why did they remove spidermonkey?...
What is a decent IDE for developing JavaScript, I'll be writing both client side stuff and writing for Rhino. Ideally It needs to run on Mac OSX, although something that runs on Windows too would be nice.  ADDITIONAL:  Having had a play with bot...
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.InterpretedFunction and I don't see a way to in...
currently, I found the same JavaScript RegExp might generate different result in different JavaScript Engines, here is an example: In Chrome V8 JS engine,  /\x3c/.test("\x3c")  --> returns true  /\x3c/.test(function() {  return "\x3c&#...
I am using a Javascript object as an object with configuration properties. E.g. I have this object in javascript:  var myProps = {prop1: 'prop1', prop2: 'prop2', 'prop3': 'prop3'};   This object (NativeObject) is retur...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.