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...
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'm attempting to run jsHint from the command line using Rhino.  I want to make the check an automatic part of my teams checkin process.  I have the basic configuration working using the command:  java -jar .rhino.jar ./jshint.js ./samplefile.js...
I just needed to create a little interface for a project. So I decided to take given code and to run it on Google AppEngine. My problem is, that I'm experienced in JavaScript and got some basic knowledge of Java, but I got no clue how a Java weba...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.