"platform" does not
necessarily mean operating system, but it CAN mean that. see
here for one definition. it can refer to hardware OR software, and probably many other ways.
So, back to your original question - Is java a platform - it depends on which definition of platform you are using.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors