Home > Archive > Java Help > November 2005 > classloading question
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
classloading question
|
|
| Petterson Mikael 2005-11-24, 7:57 am |
| Hi,
I have two jar files. myapp1.jar and myapp_test.jar
When I execute I do:
java -cp myapp_test.jar:myapp_test.jar .......
When class EtxCard.java is loaded from myapp1.jar that class
depends on Cards.java that exists in both jars. Which one will be
loaded the version in myapp_test.jar or myapp_test.jar?
Cheers,
//mikael
| |
| Thomas Fritsch 2005-11-24, 7:57 am |
| Petterson Mikael wrote:
> I have two jar files. myapp1.jar and myapp_test.jar
> When I execute I do:
>
> java -cp myapp_test.jar:myapp_test.jar .......
>
> When class EtxCard.java is loaded from myapp1.jar that class
> depends on Cards.java that exists in both jars. Which one will be
> loaded the version in myapp_test.jar or myapp_test.jar?
Execute
java -verbose:class -cp ..... .........
and Java will print out which class is loaded from where.
--
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')
|
|
|
|
|