%sFtpAddDynPath %adds a *.jar file to the dynamic Java class path % %in------------------------------------------------------------------------ % jarFile: Path to the *.jar file %########################################################################## function sFtpAddDynPath(jarFile) if(nargin ~= 1) error('Error: sFtpAddDynPath requires 1 input argument...'); end if( ~ischar(jarFile) ) error... (['Error: sFtpAddDynPath requires input argument to be a string...']); end %only add if not already in dynamic Java class path dyn = javaclasspath; if ( isempty(findstr(char(cell2mat(dyn')),jarFile)) ) javaaddpath(jarFile); end end