This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes can we write operating system using JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "can we write operating system using JAVA" Watch "can we write operating system using JAVA" New topic

can we write operating system using JAVA

ramchander yshetti
Ranch Hand

Joined: Apr 22, 2006
Posts: 97
please clear my doubt ( can we write operating system using java..)

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189

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.

[Jess in Action][AskingGoodQuestions]
Shaan Shar
Ranch Hand

Joined: Dec 27, 2005
Posts: 1249

Originally posted by yathamshetti ramchander:
please clear my doubt ( can we write operating system using java..)


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.

The Best way to predict your future is to create it - Every great individual common man
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14950

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.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
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.

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: can we write operating system using JAVA
It's not a secret anymore!