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?...
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...
I'm trying to use the Rhino lib to call some javascript from java code. But it seems that it is choking on a typed array. Here is my simple js file  function decrypt(version, iv, encryptedBuffer) {     var output8;     output8 = new Uint8Array(en...
My project perfectly works on Java 6 (different updates and OS). It uses Rhino as script engine. Now we need to migrate to Java 7 and I found one issue that prevent us to do it. We have code like this:  Context.enter(); try {     ScriptEngine js = ne...
This is related to this other question:  Last evaluated expression in Javascript  But I wanted to provide more details about what I wanted to do and show how I finally solved the problem as some users requested in the comments.  I have snippets of Ja...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.