Not really - because java runs on a JVM which in turn runs on top of an operating system.
You could write a kernel in another language then write the rest of the "operating system" on top of that..
Take a look at
OSDev Wiki[
^] for all aspects of developing an operating system to get you started.