Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Java on FreeRTOS?

Can I use Java on FreeRTOS?

If so, are there any good URLs to help me get started?

What problems can I expect?

like image 884
Mawg says reinstate Monica Avatar asked Jan 12 '12 08:01

Mawg says reinstate Monica


2 Answers

You need a Java VM to run Java code. I doubt very much that there is a Java VM implementation specifically designed to run on FreeRTOS, rather you would probably have to hook the VM into the underlying OS in the porting layer for your target. Some VMs implement scheduling themselves and do not need an OS to support threading.

Consider:

  • JamaicaVm (Commercial & Free Personal Edition)
  • MicroJVM (Comercial)
  • Aonix Perc (Commercial)
  • PreonVm (Commercial)
  • AvianVM (Open source)
  • Open Mika (Open source)
  • Squawk (Open source)
  • SimplRJT (Open source needs no RTOS for threading support)
  • Kaffe (Open source).

You might also benefit from reading this article by Michael Barr and Jason Steinhorn

like image 98
Clifford Avatar answered Oct 18 '22 12:10

Clifford


My contribution is to suggest one looks to: http://www.ajile.com

It seems that they deliver 'java on a chip'; I'm software so I have no idea if it works. I can say that 10 years working with applications, middle ware and operating systems 'stuff' where we fortunately had some-times had ways to access people on the chip-design teams. (Imho) most of the time there was a Chinese wall between the 'hard ware' and 'software' cliques. I am deliberately including "virtual machine" people in 'hardware' group.

I haven't run things on aJile silicon. I'm just promoting a seemingly more natural option that could evolve into a Java Machine that works -- Somewhat similar to the BBC (and now ARM silicon), Forth, Smalltalk, or M2 that began life on an "Ideal Machines".

If I may; I have one quite significant caveat based on my hard-won lessons. No "virtual" anything is going to make sense. There will always be a conflict between the "virtual folk" and any "programmer mob". That's as may be. It will not often help Ms/Mr End-user of XYZ, Vermont, USA ... (Or, will it?)

My personally most satisfying tasks/projects were when we engaged with any available (or accessible) the hardware (or ideal-machine / virtual-machine) in a peer-to-peer dialogue. That doesn't seem to happen that much these days; may be we just need DSL-s instead of hardware or virtual machines??? (irony :flag).

~ aloha

like image 34
will Avatar answered Oct 18 '22 12:10

will