Register / Login
Win a copy of
Cross-Platform Desktop Applications: Using Node, Electron, and NW.js
this week in the
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
IDEs, Version Control and other tools
2 jar files having the same package structure
posted 12 years ago
I hope this is the right forum for this question.
I have a jar file (jar1) with a package structure
The files in this package refer to a class ServiceContext which is part of second jar file
The second jar file also has the same pkg structure
only the last package name is different in jar1 file & jar2 file.
I have both the jar files in the classpath but still i am not able to locate the classpath for ServiceContext in 2nd jar file.
How do i get around this.
It seems the jvm looks only in the first jar & since it does not find a util package errors out.
Is there a way to force it to look in the 2nd jar
It is sorta covered in the
JavaRanch Style Guide
Boost this thread!
how to define jars in classpath
Java JARs With Dependancies On Other JARs
Class Loading in JBoss
Class Loading in Websphere?
Invoke a Class from a Particular JAR file