r/JavaProgramming • u/Negative_Raspberry24 • Sep 07 '26
Compiled Vineflower to JavaScript via TeaVM – decompiles JAR files entirely in the browser
I wanted to inspect JAR files on my phone during my commute, no JDK, no desktop tools. So I ended up compiling Vineflower (Java decompiler) to JavaScript using TeaVM and running it in a Web Worker.
It can:
Decompile .class files or the entire JAR – nothing uploaded to server
Browse files inside JAR/WAR
Inspect constant pool and bytecode
Edit config files (YAML, properties, JSON) and export modified JAR
Works on mobile too.
Curious if anyone else has tried running JVM-based tools in the browser this way – TeaVM's reflection support was the trickiest part.
3
Upvotes