Throw a helpful error if the java class path cannot be modified

Fixes #197