What is the lightest Java Virtual Machine ever? (except KVM)

I'd like to install Java on a Psion 5MX with GNU/Linux 16MB RAM machine, will it be possible?

Unfortunatly, "KVM must be installed by the manufacturer".

What I want is to be able to is to write basic Java code, test and sketch simple algorithms. Important notes: I don't need the graphic part since I'll only use the console (no graphic server) but this will be inside a Debian.

Asked by: Rafael823 | Posted: 21-01-2022

Answer 1

There is a List of Java virtual machines on Wikipedia, with a number of them open source and targeting embed devices. Like Mika which seems quite small and portable.

Answered by: Kevin936 | Posted: 22-02-2022

Answer 2

Please give us more details about the machine, besides the OS and the memory. Also give us details on what you hope to accomplish with Java on such an underpowered machine (Java has some big overhead in embedded places as compared to writing native code).

The answer is maybe. I've seen Java running on a machine with 4MB of RAM, but it was not running Linux (in fact there was no OS at all). Link: Java on the Nintendo DS

Answered by: Melanie237 | Posted: 22-02-2022

Answer 3

The Squawk virtual machine is designed for small devices. It's probably got sub-par performance though since most of it is in java.

Answered by: Julian700 | Posted: 22-02-2022

Answer 4

Probably a little late but I'd also suggest Squawk. It runs on sun spot devices which have 160k of membory (or something in that area). 160mhz CPU. The whole JVM is open source so you can try to re-write it for your own devices :)

Answered by: Jack124 | Posted: 22-02-2022

Similar questions

Still can't find your answer? Check out these amazing Java communities for help...

Java Reddit Community | Java Help Reddit Community | Dev.to Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)