load mp resource and java resource