Skip to main content

Japex classpath question

2 replies [Last post]
vetalok
Offline
Joined: 2007-03-05
Points: 0

Hi all
I'm new to Japex. I can't find Japex dedicated forum that is why I need to ask my question here.
I have a directory that contains the following jars:
test-japex.jar
impl1.jar
impl2.jar
My xml contains the following text:
----------------------------------------------


...


----------------------------------------------
Both impl1.jar and impl2.jar contains the same implDriver class.
I run the following command:
java -cp "test-japex.jar" com.sun.japex.Japex API.xml
The question is:
does japex.classPath use only impl2.jar or impl1.jar depending on driver?
(I mean does some collision between classes from impl1.jar and impl2.jar may be? )

Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
spericas
Offline
Joined: 2003-06-10
Points: 0

Vetalok,

You can ask questions about Japex at mailto:users@japex.dev.java.net. In answer to your question, yes, japex.classPath is a *driver* parameter. Thus, it can have a different value for each driver. Internally, the Japex engine will use a different class loader for each driver. This is useful to compare different implementations (or versions) of the same library.

vetalok
Offline
Joined: 2007-03-05
Points: 0

>Internally, the Japex engine will use a different class loader for each driver
Is there some possibility to use the same classloader?
thanks