Java Class Origin

by

 

Quickly find the origin for a java class.

ClassOrigin(jObj)
function URL = ClassOrigin(jObj)
	jClass = javaMethodEDT('getClass',jObj);
	ProtectionDomain = javaMethodEDT('getProtectionDomain',jClass);
	CodeSource = javaMethodEDT('getCodeSource',ProtectionDomain);
	URL = javaMethodEDT('getLocation',CodeSource);
end

Contact us