Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About Inter Jar Communication(JAR-JAR)

 
Murali Obla
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Thanks,
Murali
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18276
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Murali Obla
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for ur reply Hill
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic