> But in reality Java works pretty fine across all supported platforms.
Only if you restrict the jre to a specified version and test the programm on all used platforms.
Up to now this "runs everywhere" is total bogus. Everytime a new jre version is rolled out by a customer reports about changed behaviour starts rolling in.