> I just discovered webassembly and found it very exciting. Is it
> possible to convert a JAR file to webassembly using TeaVM?
Hello! No, currently it's impossible. WebAssembly support is in
experimental status, it does not support all of the features of JS
backend. Another option is converting Lucene to JavaScript, but this
requires some investigation. TeaVM does not support 100% Java (for
example, it has limited support for reflection and does not support
class loaders). Please, note that TeaVM does not work like you expect
(i.e. converting jar files). Instead, it's intended to convert
applications, i.e. set of jar and class files with single entry point
(main method). You won't be able to call anything except for main method
from JavaScript, unless you wrap all Java APIs to JavaScript-friendly
declarations. Note that the latter case is not supported directly,
you'll have to use some hacks to expose Java APIs to JavaScript. The
whole path is not easy, so if you really going to spend some time to
learn TeaVM and investigate if it fits your needs, let me know and I'll
provide you with further instructions.