Yet, this is not about compiled vs interpreted, but what portable functions in the portable framework different languages provide.
Should C or C++ implement the entire Java framework, they would be just as portable despite being compiled instead of interpreted.
This whole interpreted languages are more portable is still rubbish.