I'm creating modules in RingoJS, and I would like to compile them to Java class files. I know that it's possible to compile Rhino source files to Java class files. I was wondering if there's a way to use Mozilla's JSC tool to compile RingoJS modules and link it to the RingoJS engine so that it can be distributed as a single class file or jar file. If possible, what are the limitations of compiling RingoJS modules to Java class files.
Is it possible to compile JavaScript files using RingoJS to Java class files?
424 Views Asked by Aadit M Shah At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in JAVASCRIPT
- Angular Show All When No Filter Is Supplied
- Why does a function show up as not defined
- I count the time the user takes to solve my quiz using Javascript but I want the same time displayed on another page
- Set "More" "Less" font size
- Using pagination on a table in AngularJS
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- State with different subviews
- Ajax jQuery firing multiple time display event for the same result
- Getting and passing MVC Model data to AngularJS controller
- Disable variable in eval
- javascript nested loops waiting for user input
- .hover() seems to overwrite .click()
- How to sort a multi-dimensional array by the second array in descending order?
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
Related Questions in RHINO
- Simplest way to "unpack" obfuscated javascript from within a Java program
- Convert a working node.js lesscss workflow to rhino?
- Multiple Rhino (java) threads manipulate the same file
- Server-side template parsing
- Rhino Mock Test Expected #1, Actual #0 - error
- Access function in class which is created with the mozilla (rhino) js.jar
- How to check if Javascript generator has exited?
- How can I specify exact rhino implementation instead of that embedded to JDK?
- How to create FunctionCall statement with arguments and add in function
- javax.script - rhino - how can view or edit native functions?
- What's the exact syntax to concat 2 constraints in Rhino Mocks framework?
- HTTP requests from Sling ESP scripts (Server side JavaScript based on Rhino)
- Using walkFileTree in a JavaScript source interpreted by rhino
- How to invoke java method from javascript
- Is there a production stable RDBMS module for RingoJS
Related Questions in RINGOJS
- Is there a production stable RDBMS module for RingoJS
- RingoJS javascript - get user input on console
- Is it possible to compile JavaScript files using RingoJS to Java class files?
- How can use mongoose/express with ringojs
- How are native functions created in Rhino?
- How do I get the real filesystem path from within RingoJS webapp?
- How can I set and read session data in RingoJS?
- Using RingoJS EventEmitter... or how to use coffeescript compiler with RingoJS
- What's the difference between scriptName and pathInfo in JSGI/Level0/A/Draft2?
- How to access custom Java classes from RingoJS?
- Is using Node.js or Ringojs safe for live websites?
- Reading and writing data using RingoJS on App Engine
- How are daemon processes created in RingoJS?
- Running node.js module (more specifically YUIDoc) in a JVM
- Which platform are GMail server side JavaScript running on?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This is currently not supported in RingoJS. Compiling JavaScript to Java with Rhino is relatively straightforward, but module loading in Ringo is currently hard-coded to JavaScript source files.
Luckily, one of the features planned for the next rlelase is pluggable module loaders:
https://github.com/ringo/ringojs/issues/160
The idea behind this was really to support languages to compile to JavaScript such as CoffeScript, but I don't see why it shouldn't work for Java class files as well. In fact I think loading compiled class files is something we should support out if the box.
If you're interested in this feature watch the issue above or simply wait for the next release.