Codesource should never be null, if you class is in a jar file, codesource points to the jar. else it might point to a directory where your class files can be found (or in subdirs thereof). if none of the above is available it will point to the classfile itself.
But perhaps Martijn can tell you how he did it, i know he did it for our project but can't seem to find where. Maurice On 3/7/06, Joni Suominen <[EMAIL PROTECTED]> wrote: > On Tue, 2006-03-07 at 10:27 +0100, Juergen Donnerstag wrote: > > Do you know how to access that information? How do you get the jar > > file name a specific class has been loaded from? > > getClass().getProtectionDomain().getCodeSource().getLocation() gives you > the location where the class was loaded from. I don't know in which > situations the CodeSource may be null, though. > > Joni > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user