Java succeeded with this on the server-side but failed on the browser and desktop side. I'm not sure how to characterize it on the mobile side -- success in core libraries and basic language but not in the UI.
Javascript has finally gotten reasonable on the browser and ok on the server, but mobile Javascript apps aren't much better than Java was/is on the desktop.