Just a simple Q. It is possible to code OS in Java? If yes, how I can i run Java via Assembly? Or how exactly it works.
Asked
Active
Viewed 718 times
-3
-
You can write an OS in .NET (e.g., [Singularity](http://research.microsoft.com/en-us/projects/singularity/), [Renraku](https://github.com/daeken/RenrakuOS)), so at least some of the concepts should be transferrable to the JVM. – C. K. Young Apr 11 '14 at 20:24
-
1Yes, there are multiple projects trying to do that see [JavaOS](https://en.wikipedia.org/wiki/JavaOS), [JNode](http://www.jnode.org/), [JOS](http://jos.sourceforge.net/) – jrbeverly Apr 11 '14 at 20:25
2 Answers
1
Yes, Its possible.
Please check JOS a free and open Java(tm) based Operating System (JOS).
You can take a help from http://www.jnode.org/.

Shreyos Adikari
- 12,348
- 19
- 73
- 82
-
-
Why you need c++? You need JDK to compile classes and JRE to run the same. – Shreyos Adikari Apr 11 '14 at 20:46
-
-
1
Of course it is possible, and has been done. Tipically, you would write the kernel (or microkernel) as an extended Java virtual machine, with all the rest of the system (which could include process management, network stack, etc.) being written in pure Java.
Among the many pros of this approach there is the so called language-based protection: Java is a type-safe system, hence (ideally, at least) you don't need to use hardware memory protection to provide isolation between processes.
Take a look, for example, at the JX Project.

Roberto Reale
- 4,247
- 1
- 17
- 21