...
The way to endorse libraries for a java command is to use the -Djava.endorsed.dirs= switch at the command line. Setting it up in an IDE is slightly different. In Eclipse I add them to list of system libraries in the JRE definition (Help\Preferences\Java\Installed JREs\Edit the one you want to add them to), and add a -Djava.endorsed.dirs= argument into the Default VM Arguments box for good measure (the latter is not strictly does seem to be necessary, but and makes it obvious to me that I'm modified this JRE)
...