When a Java application it need many supporting files such as jars, some application,etc.
My intention here is I want to get copy of all such files and pack with Java application ,so that java application in any computers .
it is executable JAR but the idea is explained as follow
consider I have written java class which needs open office
to run my java application , openoffice to be intalled on my computer(say machine 1),for that ,I have to download Openoffice and install on my machine 1.If i want to run the same java class in some other machine(say Machine 2) ,there also I have to install Open office .I do not prefer this approach.
But I want to pack all files(open office files) used my java class in to a package,say package A ,so If I want to run my java class on other machine ,just I place my java class with package-A.so my java class run without installing open office