Just out of curiosity is it possible to code an Operating system in java
Offline
No offence, but if you think java is a good operating system language, then you are out of your mind.
Use c++ or assembly
Offline
It's probably quite possible to make a "toy" OS like the ones often made in Scratch, with actual file managing. But it'd be pretty complicated still, and not worth it considering the high-level-ness of the Java VM (i.e. interfacing with hardware would be hard, and you'd end up relying a lot in external libraries).
Offline
nXIII wrote:
Erm… a large portion of Android OS is written in Java. So yes. However, writing an operating system is not a small project.
Well the Android OS is based off linux which is NOT written in Java. But yeah, the GUI and apps are written in Java.
Offline
Android merely converts Java bytecodes to another kind of bytecode, designed to run efficiently on mobiles, in the Dalvik VM. Thus, only Android applications can be written in Java, while the OS and the kernel are in the device's native code.
Offline
technoguyx wrote:
Android merely converts Java bytecodes to another kind of bytecode, designed to run efficiently on mobiles, in the Dalvik VM. Thus, only Android applications can be written in Java, while the OS and the kernel are in the device's native code.
I said "a large portion," i.e., a large portion of the system applications as well as almost all the installable applications and some other stuff. I didn't say it was entirely written in Java, as it's not.
Last edited by nXIII (2013-01-17 16:48:45)
Offline
nXIII wrote:
technoguyx wrote:
Android merely converts Java bytecodes to another kind of bytecode, designed to run efficiently on mobiles, in the Dalvik VM. Thus, only Android applications can be written in Java, while the OS and the kernel are in the device's native code.
I said "a large portion," i.e., a large portion of the system applications as well as almost all the installable applications and some other stuff. I didn't say it was entirely written in Java, as it's not.
Basically it is not running on java, but, its Launcher and apps are written in java.
Offline
theprogrammerpro wrote:
Just out of curiosity is it possible to code an Operating system in java
I have read operating system full theory. So In the theory about operating system, Yes I said, but you will still have to have some low-level set up code to bootstrap the Java VM that will run on it, and also low-level code for obtaining hardware drivers.
Offline