Two Laptop Bag*
The moose likes IDEs, Version Control and other tools and the fly likes 2 jar files having the same package structure Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "2 jar files having the same package structure" Watch "2 jar files having the same package structure" New topic
Author

2 jar files having the same package structure

Hari patnaik
Greenhorn

Joined: Apr 13, 2005
Posts: 12
Hi All

I hope this is the right forum for this question.

I have a jar file (jar1) with a package structure

com.elle.platform.services.pojo
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
com.elle.platform.services.util

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


Do respond

Bye
Hari
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 2 jar files having the same package structure
 
Similar Threads
Class Loading in Websphere?
Java JARs With Dependancies On Other JARs
how to define jars in classpath
Invoke a Class from a Particular JAR file
Class Loading in JBoss