user155902
user155902

Reputation:

what graphics library would i need to run java?

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

Upvotes: 2

Views: 160

Answers (3)

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.

Upvotes: 0

kgiannakakis
kgiannakakis

Reputation: 104196

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.

Upvotes: 0

Asaph
Asaph

Reputation: 162859

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.

Upvotes: 1

Related Questions