% ishara_java_cp - Set Java classpath for audio support components
function setup_ishara_java(kind)

Jar=[fileparts(which('setup_ishara_java')),'/java/ishara_audio.jar'];
switch kind
	case 'dynamic'
		javaaddpath(Jar);
		fprintf('Added %s to DYNAMIC Java classpath.\n',Jar);
	case 'static'
		system(sprintf('echo "%s" >> "%s"/javaclasspath.txt',Jar,prefdir));
	otherwise
		error('Unrecognised argument: must ''static'' or ''dynamic'',');
end

