Pavel, Thanks for the links - I found smth interesting in the last one. Note, however: all of them mention that the application or extension class loader should use the Class-Path attribute, not arbitrary URLClassLoader. Moreover, this depends on the context - e.g. the extension CL should ignore it. And the URLClassLoader does not provide any API to control this. Though our URLClassLoader is aware of the Class-Path attribute and current JarRunner impl works, we may need to revisit this issue in sometime...
-- Regards, Alexey 2006/9/25, Pavel Pervov <[EMAIL PROTECTED]>:
Ha! I discovered interesting article [1] about java launcher and class loading. Pavel. [1] http://java.sun.com/j2se/1.5.0/docs/tooldocs/findingclasses.html On 9/25/06, Alexey Varlamov <[EMAIL PROTECTED]> wrote: > > Pavel, > > Just to be clear, could you please point to some documentation which > declares such responsibility? > This seems logical and now I recall why I let it to be forgotten ;) > > 2006/9/25, Pavel Pervov <[EMAIL PROTECTED]>: > > Chris, > > > > As far as I understant, this is responsibility of a class loader to > parse > > Class-Path attribute of any jar file it has in its class path. > > System class loader for DRLVM (which is URLClassLoader) does this. > > > > Any objections? > > > > Regards, > > Pavel Pervov. > > Intel Middleware Products Division. > > > > On 9/25/06, Chris Gray <[EMAIL PROTECTED]> wrote: > > > > > > As I understand it, the classpath of the jarred application should > include > > > the > > > jar file itself and the contents of its Class-Path attribute (if any). > You > > > probably need to create a special class loader for the application and > use > > > that whenever the application (or a library loaded by it) is the > > > initiator. > > > -- > > > Chris Gray /k/ Embedded Java Solutions BE0503765045 > > > Embedded & Mobile Java, OSGi http://www.k-embedded-java.com/ > > > [EMAIL PROTECTED] +32 3 216 0369 > > > > > > > > > --------------------------------------------------------------------- > > > Terms of use : http://incubator.apache.org/harmony/mailing.html > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > --------------------------------------------------------------------- > Terms of use : http://incubator.apache.org/harmony/mailing.html > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
