Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can we write operating system using JAVA

 
ramchander yshetti
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
please clear my doubt ( can we write operating system using java..)


bye
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Given a suitable definition of "operating system", I suppose. Could you write something using only Java which would boot a generic x86 computer? Nope. Could you write an OS in Java, given a JVM and "glue" code to interact with the hardware? Sure.
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by yathamshetti ramchander:
hai,
please clear my doubt ( can we write operating system using java..)


bye


let us know, what do you think about Operating System is ??? .

Do you know, what is the difference between Operating Systems and Applications Systems.

yes You cann't write the whole code in JAVA for Operating Systems, but yes ofcourse, you can write with some native support.

Hope it helps you out.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15284
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun once had (I don't know if they still do) a microprocessor that executes Java bytecode in hardware. It is/was called picoJava. Java would be the logical choice if you'd want to write an operating system for a computer that contains such a processor.
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup, given hardware that has built-in support to execute Java code to the extent of revealing its entire instruction set through Java commands, you could indeed do it (and it has been done).
Without that support, you can't as you don't have access to the machine instructions you need.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic