This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes About  Inter Jar Communication(JAR-JAR) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "About  Inter Jar Communication(JAR-JAR)" Watch "About  Inter Jar Communication(JAR-JAR)" New topic

About Inter Jar Communication(JAR-JAR)

Murali Obla
Ranch Hand

Joined: Nov 18, 2001
Posts: 40
I have packaged some Java(JAR) files into two different jar files.Is it possible to communicate ie to instantiate a class which is in a particular jar file from other jar file??
Pls help me...
It's very urgent

"Excellence is never an accident; it is always the result of high intention, sincere effort, intelligent direction, skillful execution, and the vision to see obstacles as opportunities"
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17257

That's really more of a basic Java question than an EJB question. But the answer is simply that if all the jars are in your CLASSPATH, the classloader doesn't really care if there's one jar or 20 - it looks through all of them until it finds the class.

An IDE is no substitute for an Intelligent Developer.
Murali Obla
Ranch Hand

Joined: Nov 18, 2001
Posts: 40
Thanks for ur reply Hill
I agree. Here's the link:
subject: About Inter Jar Communication(JAR-JAR)
It's not a secret anymore!