Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By martinayotte
#37076 There is NanoVM, but which is pretty old. I've found also uJ.
Another one is BAJVM and there is also HaikuVM.
I don't know their status and if they are easy to port ...
User avatar
By kenn
#37124 Because any code one writes for the ESP8266 is still sitting on top of the Esspressif runtime which provides the whole wifi and internet protocol stack, I can't see how any standard JVM could sit nicely on top of that.

As an old Java guy myself, I've become quite comfortable writing C and C++ for microcontrollers. For the ESP8266 I've used the Sming library.
User avatar
By Neo
#41247 Hi,

i'm busy with other projects but still thinking about how to get a jvm running on the ESP,
and still collecting information.

I came across this JVM written in LUA:
https://cowlark.com/luje/

As there is a Lua-Interpreter available for the ESP it could work out.
Downside is that Luje is rather experimental and doesn't support threads.

A probably more stable option is to use a phyton interpreter written in Lua, and
a JVM written in Phyton.
Sounds crazy, but is probably the most painless solution.

Computation time is not my key requirement, i just want it to be able to run java-bytecode
and a rudimentary set of the JDK (like Vectors and serilalization).
Also somehow accessing the GPIO's is required.
(note: Yes, JDK has classes for GPIO-Pins and related stuff).

Nevertheless my favourite solution is to crowdfund someone to port the uJ or any other JVM written
in C for the ESP, but any solution that meets my key-requirements is welcome.

Any ideas from your side?

regards, Neo