Can I compile Dart to Javascript from a Java Virtual Machine based application?
I'm developing a web application that runs in the JVM. I'm thinking about allowing people to save and compile Dart via my web application, and then that compiled Dart code would be included on certain pages, as Javascript.
I suppose in theory the answer is yes, because it should be possible to somehow bundle the Dart editor or the dart2js program in my JVM application, and make an external process call to Dart. But I'm wondering: Is there any "easy" way to compile Dart, from Java? Like including some JAR and then it'll work? Or calling out to some scripting language via the JVM's script engine?