views:

87

answers:

3

i am looking into making my own OS just to say i've done it. i know that there is a project called JNode that has done one in assembly and java. what i was wondering was, what embedded graphics do you need to run java? i know java uses the graphics of the specific os so this confuses me

+1  A: 

I think you would need to port the JVM to your OS. Have a look at the Java Virtual Machine spec. It will tell you exactly what need to implement to support Java.

Asaph
A: 

If you need to implement AWT/Swing, then you obviously need to have some kind of library that can draw 2D graphics in a screen. I'd recommend however to start from implementing the virtual machine and some basic libraries. Printing in a screen will be sufficient.

Have a look here for a list of implementations of JAVA for the ARM platform. Kaffe is interesting.

kgiannakakis
i'm looking to implement awt/swing could i use the same libraries most linux systems operate under? or could i use something like opengl as the systems library?
Lonnie Ribordy
OpenGL doesn't have the line and curve primitives used in Graphic2D, but is used in Sun's Java implementation to improve some pixmap rendering.
Pete Kirkham
could GTK+ be used then?
Lonnie Ribordy
A: 

Java can run in headless mode. That might be a good starting point suitable for server side stuff, which you can then extend if you feel like it.

Have a look at Sanos - http://www.jbox.dk/sanos/ - which is a tiny OS providing just the facilities needed to run the Windows JVM.

Thorbjørn Ravn Andersen