File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "can we write operating system using JAVA" Watch "can we write operating system using JAVA" New topic
Author

can we write operating system using JAVA

ramchander yshetti
Ranch Hand

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


bye
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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:
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.


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: 14074
    
  16

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 7 API documentation
Scala Notes - My blog about Scala
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.


42
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can we write operating system using JAVA
 
Similar Threads
Can one build and operating system using java?
A question for experts ...
How to find out OS type
How to check file size on disk
Is It possible to write an Operating System.