Saturday, March 13, 2021

Jainja JVM with Cosmopolitan Libc

Cosmopolitan Libc is a very interesting library which makes it possible to make an executable independent of the OS (but not of the architecture which must be x86)  
So I tried to compile Jainja JVM with this C library. It was pretty easy, apart from a few name collisions in headers.
There is now a JVM whose binary code works under Windows, Linux, xBSD and MacOS without recompilation !  

Cosmopolitan libc focuses on text-based user interfaces but AWT/Swing should work through X11 / TCP (not tested yet).


  1. It's 2023 now. Are you still maintaining this project?

    1. Yes, I still maintain the Jainja JVM but not very actively these days. I added lambda support a few months ago.