Porting Jainja JVM #226
Replies: 1 comment 1 reply
-
Hello @glegris, I have no idea why it doesn't work. Tilck does not behave precisely like Linux does, even when it behaves as expected. Tilck behaves according to the interface implemented by Linux (POSIX + a few Linux-only special things), for the limited set of syscalls and syscall parameters it supports. Many of the interesting applications I that ported on Tilck required quite some debugging and extra work in the kernel to work properly. If you statically linked somehow the Java runtime into an ELF binary, that's a ton of code and many things could have gone wrong. The thing might not work because of the following reasons:
Note that there might be multiple problems each in one of those categories. A starting point to debug that would be use Tilck's syscall tracing. See https://github.com/vvaltchev/tilck/blob/master/docs/debugging.md Vlad |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am the author of the Jainja JVM. I have tried to make it work on Tilck and have obtained preliminary results.
Things that seem to work:
Things not yet tested: java.io, java.nio, and low-level graphics
Current difficulties: I can't load classes from a jar file, so there may be problems with fseek
Beta Was this translation helpful? Give feedback.
All reactions