/** Add the specified directory or JAR file to the class path. e.g.
addClassPath( "/home/pat/java/classes" ); addClassPath( "/home/pat/java/mystuff.jar" ); addClassPath( new URL("http://myserver/~pat/somebeans.jar") );
See Class Path Management @method void addClassPath( string | URL ) */ bsh.help.addClassPath= "usage: addClassPath( string | URL )"; import java.net.URL; import bsh.BshClassManager; addClassPath( path ) { URL url; if ( path instanceof URL ) url = path; else url = pathToFile( path ).toURL(); this.caller.namespace.getClassManager().addClassPath( url ); }