Jar in a Jar

Ok, I'm trying to do two things with jars.

1. I have a jar that holds no classes or anything like that but just files, images, and directories. I know how to import classes from a jar and use their objects, but not how to import a file from a jar within a jar?

2.Those other jars inside the main jar, can they be modified, like adding a text file to them or changing a text file with them? Like I want the main jar to be able to write to the other jars within it. And I understand there maybe a way in Java 6(not sure how) but what about in java 5?

[568 byte] By [blackmagea] at [2007-11-27 8:54:58]
# 1

http://onesearch.sun.com/search/onesearch/index.jsp?qt=jar+in+a+jar&subCat=siteforumid%3Ajava22&site=dev&dftab=siteforumid%3Ajava22&chooseCat=javaall&col=developer-forums

Standard Java does not support jars within other jars. There are, I believe, one (or more) 3rd-party alternatives. You could also write a custom class loader to do that.

ChuckBinga at 2007-7-12 21:15:12 > top of Java-index,Desktop,Deploying...
# 2
You can use jar inside jar with the pelp of eclipse plugin"Fat Jar". Go through following link: http://fjep.sourceforge.net/index.htmlRegardPawan
PawanPa at 2007-7-12 21:15:12 > top of Java-index,Desktop,Deploying...
# 3
FatJar sucks. As does squeezing all your nice modular dependencies into one tightly-packaged lump of maintenance headache
georgemca at 2007-7-12 21:15:12 > top of Java-index,Desktop,Deploying...