You can add custom jar files to JDK via putting them in[jre-home]/lib/ext. If they have API which overwrite default JDK's onesput them in [jre-home]/lib/endorsed.