revised to make it public, added: add class path entry at runtime, dump class path at runtime