Alex Rivera | Logout

Java bytecode compiler in JavaScript

Asked 2012-02-17T22:23:22.727
12

I'm looking for a standard Java to Java bytecode compiler implemented in JavaScript.

Has anyone heard of anything that can accomplish this?

Edit
Report

2 Answers

2

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)

answered 2012-12-01T00:39:31.420
1

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."

answered 2012-02-18T23:29:53.190

Your Answer