in reply to "write once, run anywhere"

They don't. Both IPC and the filesystems of numerous OSs are too disparate for this to be possible; Windows, VMS and Unix each have file system concepts that don't exist elsewhere. Let's not get into SELinux, either. MacOS (at least older versions) doesn't have a console, per se, so "Pure Java" programs must be GUI. Maybe I'm just cynical about portability.