Changing Classpath

setClassPath()

setClassPath( Object[] directoryOrJarFile )

setClassPath() changes the classpath with which Pnuts resolves a class and resource name before the system environment variable CLASSPATH. When the parameter of this function is an array, directories and JAR (ZIP) files in the array will be included in the resulting classpath.

To reset the class path setting, specify null to the parameter.

e.g.
setClassPath(["k1.jar", "c:\\home"])
getClassPath()

getClassPath() function gets the class path setting.


Back