Actually there was once a OS that was made in Java.
Did it live in a hole in the ground? (Not a nasty, dirty, wet hole, filled with the ends of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to eat, of course.)
Actually, there have been several Java based OSes over the years. As for failing... well, none of them took the desktop by storm, but given that most of the were for embedded systems, that's far from a failure. However, if you mean Sun JavaOS
specifically, it was a failure mainly in that it was targeting a market (diskless workstations and netstations) that didn't actually exist, so it's technical merits were pretty much irrelevant.