• Post Reply Bookmark Topic Watch Topic
  • New Topic

class in multiple jars - which is used?  RSS feed

 
Michael Erskine
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If one has classes that appear in multiple jars, which will be used by the JVM? Will it be the one first encountered by the classloader?
PS: The JVM is Sun 1.4.1_02.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The default class loader uses the first jar file it finds.
 
Michael Erskine
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!