What is TeaVM?
TeaVM is an ahead-of-time compiler for Java bytecode that emits JavaScript and WebAssembly that runs in a browser. Its close relative is the well-known GWT. The main difference is that TeaVM does not require source code, only compiled class files. Moreover, the source code is not required to be Java, so TeaVM successfully compiles Kotlin and Scala.
-
Easy to use
Create a new project from a Maven archetype OR apply Gradle plugin and develop with pleasure You don't need a complicated setup with npm, Webpack, UglifyJS, Babel, etc. TeaVM does everything for you.
-
Efficient
TeaVM is quite efficient, you won't wait for hours while it's compiling. Also, TeaVM produces fast, small JavaScript code for web apps that start quickly, even on mobile devices.