I'm looking for a standard Java to Java bytecode compiler implemented in JavaScript.
Has anyone heard of anything that can accomplish this?
I'm looking for a standard Java to Java bytecode compiler implemented in JavaScript. Has anyone heard of anything that can accomplish this?
| |||||||||||||||||||
feedback
|
Assuming the existence of working JVM implemented in Javascript, you could get all meta and run this project (a Java compiler written in Java). | |||||||
feedback
|
There are several here: https://github.com/jashkenas/coffee-script/wiki/List-of-languages-that-compile-to-JS Such as j2js, bicavm, doppio...(see the java section) | |||
feedback
|
Maybe something like this? [ https://github.com/downloads/Jivings/jsJVM ] It lets Java happen within a browser and is written in JavaScript. (Technically, CoffeeScript...) | |||
feedback
|
if your goal is to have users write Java in a browser and see it run, it makes.MUCH more sense to do the compiling and executing server side. A servlet could read the code, compile it and run it, then push the output back to the browser. unless your thesis is "Anything that can be written in JavaScript will eventually be written in JavaScript." | |||||
feedback
|