There are some efforts to write an operating system (almost) entirely in Java: JOS, JNode. None of those really took off as a serious operating system.
There have also been attempts at making CPUs that could directly execute Java bytecode as their native instruction set - see Java processor in Wikipedia for a few links. Those also haven't been very succesful.