Skip to main content
Skygge
Visitor II
June 18, 2020
Question

Java on an MCU

  • June 18, 2020
  • 3 replies
  • 1920 views

seems like the chances of a JVM on an MCU is a nightmare?

research show java is supposed to be cross platform, however it makes sense to be able to embed the virtual machine without difficulty first.

I can’t even find a successful case online except by an almost huge mini company

skygge

    This topic has been closed for replies.

    3 replies

    waclawek.jan
    Super User
    June 18, 2020
    TDK
    Super User
    June 18, 2020

    Java has a significant overhead requirement. Not something you can easily put into a microprocessor with limited RAM and FLASH available. If you can't find anything, there's probably a reason.

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    RMcCa
    Senior II
    June 18, 2020

    Can't imagine writing microcontroller code without pointers. ​Java exists, at least in part, because it is intended to be machine independent, hardly a typical microcontroller application. HAL was an attempt at creating a machine independent layer, but most of the code is crap and it turns out to be easier and quicker to write your own.