Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

set priority visit classpath

 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,guys
My document interface have two concrete classes.how can i appoint to (1)and first visit (1) api.
(1)org.apache.crimson.tree.ElementNode
(2)com.caucho.xml.QElement
my WAS is 'resin'
Thanks
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have several versions of the same class (i.e. the package name and the class name match), the classloader picks up the first one listed in your classpath.
For example, if your classpath looks like "C:\libs\foo.jar;C:\libs\bar.jar" and both foo.jar and bar.jar contain a class utils.text.StringHelper, the classloader loads the class from within foo.jar as it's listed first in the classpath.
Did that help at all?
 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my second package is in the 'resin' which is my WAS.my first package is in the j2ee.jar which I set classpath in the w2k env variable.so I didn't set (2).then I think I cann't change them place.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you need something more specific than the interface?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic