954,174 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

OS programming in Java?

Is there any way to write an operating system in Java? I know it's possible to use C, but I prefer Java. It's easier to use.

mmiikkee12
Posting Whiz in Training
274 posts since Oct 2004
Reputation Points: 17
Solved Threads: 5
 

A small portion of the OS would need to be written in assembly, beyond that it's theoretically possible to use Java, though I'm not sure if it's been attempted.

Dogtree
Posting Whiz in Training
233 posts since May 2005
Reputation Points: 35
Solved Threads: 3
 

You would probably wind up using JNI(think that's the right now), and a lot of other third party api's and such...Just my guess though.

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

just remember that you'd probably have to code your own jvm into the OS somehow

Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51
 

Dogtree- Yeah, I know that, same as with C.
server_crash- Yeah, I know that, same as with C.
Phaelax- Yeah, I know that, same as with C. :)
Actually, I was looking at Kaffe. Does anyone know of a JVM written in C or assembly that doesn't require things such as stdio.h? (which I apparently can't write, BTW)

mmiikkee12
Posting Whiz in Training
274 posts since Oct 2004
Reputation Points: 17
Solved Threads: 5
 

Found one- I'm just going to modify jNode.

Why... of course that isn't a JNode code snippet.. what a coincidence that the same exact code shows up in jNode and my OS!


PS: I need a name for it now.

mmiikkee12
Posting Whiz in Training
274 posts since Oct 2004
Reputation Points: 17
Solved Threads: 5
 

If you have hardware with a JVM built into it (which is possible) you can indeed write the rest in Java.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 
PS: I need a name for it now.

Name it after me.


PS: I wrote Windows XP in java(not many know this), so if you need any help you can contact me.

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

Hi everyone,

PS: I wrote Windows XP in java(not many know this)

Is this really true?? Did you also write the kernel in java??
What about the networking part(talking to the modems using java)??

What about disk partining and formatting - were these codes also written in java??

Can your OS support most of the hardware on the market??


If you have really created something like that i think you should open-source it so people could further develop it as i think that such an OS could be very beneficial to the computer world.

It would really be great to hear a reply from you on this topic

Thank You

Yours Sincerely

Richard West

freesoft_2000
Practically a Master Poster
623 posts since Jun 2004
Reputation Points: 25
Solved Threads: 10
 

server_crash: No, that would imply that it crashes when used as a server. :( But I might need a little help. It will be open source, probably under the GPL.

mmiikkee12
Posting Whiz in Training
274 posts since Oct 2004
Reputation Points: 17
Solved Threads: 5
 

You people actually believed that I wrote XP? Did you know that I also invented the internet(Not many know that either)?

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

Actually, no, I didn't believe that. But I do know that you're good with Java...

mmiikkee12
Posting Whiz in Training
274 posts since Oct 2004
Reputation Points: 17
Solved Threads: 5
 

And I built ENIAC :)

(now take a guess at how old I am... just kidding)

mmiikkee12
Posting Whiz in Training
274 posts since Oct 2004
Reputation Points: 17
Solved Threads: 5
 

Update: It will be a Linux distro with most of the tools written in Java. I still need a name...

w00t (what's that mean anyway?) I'm now a "Posting Whiz" :)

mmiikkee12
Posting Whiz in Training
274 posts since Oct 2004
Reputation Points: 17
Solved Threads: 5
 

Update: It will be a Linux distro with most of the tools written in Java. I still need a name...

w00t (what's that mean anyway?) I'm now a "Posting Whiz" :)

What are you thinking? Name it after me...

By the way, get some more traffic to your forum so I can start posting again.

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

Start telling people about it :)
Like I said, naming it after you would imply that it would crash when used as a server...

mmiikkee12
Posting Whiz in Training
274 posts since Oct 2004
Reputation Points: 17
Solved Threads: 5
 

How long do you think this will take you?

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

Until I can get a Linux distro to install... plus a few weeks.

BTW, I just got a PM asking for advertising at Compuchat :)

mmiikkee12
Posting Whiz in Training
274 posts since Oct 2004
Reputation Points: 17
Solved Threads: 5
 

ohhh that's good. I'll visit and click on the ads as often as I can.

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

http://nerdlib.com/index_enter.php
The link that says "Free computer help forum." :)
*does victory dance*

mmiikkee12
Posting Whiz in Training
274 posts since Oct 2004
Reputation Points: 17
Solved Threads: 5
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You