• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

2 jar files having the same package structure

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Time is the best teacher, but unfortunately, it kills all of its students - Robin Williams. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic