• Post Reply Bookmark Topic Watch Topic
  • New Topic

jar  RSS feed

 
RAHUL
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we place a jar file within another?and if so how to do it
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Java there is no direct support for doing this. But if you want to do so, you need to write your own code to extract .jar from the jar and load it using classloader.

Instead of putting jar into another jar, you can create a single jar with the files of both jars.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A jar file is a file like any other, so you include it in another like any other file. What problem did you have when you tried it?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!