2

If I have a jar that includes a Class-Path entry in the MANIFEST.MF. If I add the jar to a URLClassLoader, are the jars in the Class-Path entry also added to the classloader? Do I need to introspect the jars that I want to add to the classloader to detect this and call addURL for each of them (recursively)?

UVM
  • 9,776
  • 6
  • 41
  • 66
vkraemer
  • 9,864
  • 2
  • 30
  • 44

1 Answers1

2

It does as of JDK 1.6 according to the source code of sun.misc.URLClassPath, but it isn't specified, so take your pick ;-)

user207421
  • 305,947
  • 44
  • 307
  • 483