I have a staff class in Java and I can get the location on disk where it was loaded from using the following code:
Staff.class.getProtectionDomain().getCodeSource().getLocation();
In a jruby jirb session I tried the following:
Staff.getProtectionDomain()
and (edit)
Staff.class.getProtectionDomain()
both of which cannot find the method: undefined method `getProtectionDomain'
Is this method masked by jruby and if so, how can I call it?
[edit] I am using jruby 1.5.6.