Some web haters counter with the idea that if we had a common runtime / sandbox, native could target any OS as well. They miss that the browser is literally just that.
I remember when that was called "Java". :-) It didn't work out on the desktop.
The browser ultimately delivered on the promise
If applets had better up-front security, better version management and auto-updates (like current browsers do), and better download-modularity such that one didn't have to download the entire app to open one screen, for example. Oracle buying it didn't help, as they have a reputation for suing everything that moves.
But if you had a common VM, runtime library, and sandbox that was feature-competitive with browsers, you’d basically just have reinvented the browser platform, but without the ecosystem of existing code and developers.