aspose file tools*
The moose likes XML and Related Technologies and the fly likes set priority visit classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "set priority visit classpath" Watch "set priority visit classpath" New topic
Author

set priority visit classpath

qingwu wang
Ranch Hand

Joined: Feb 19, 2003
Posts: 147
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


Thanks...qingwu<br />When I open my eyes,I see your pretty face.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
qingwu wang
Ranch Hand

Joined: Feb 19, 2003
Posts: 147
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
Why do you need something more specific than the interface?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: set priority visit classpath