Creating jarfile containing external jarfiles
I am trying to create a jar file that containing external jarfiles.I copied that external files into my location and create the manifest file Manifest.mf as below:
Class-Path: jar1.jar jar2.jar ...
and create the jar file using the command :
jar cfm MyJar.jar Manifest.mf *
I can execute this MyJar.jar at the location where I create that jar file..when am trying to execute it in another location its showing an exception regarding the external jar file such as java.lang.NoClassDefFoundError
can anybody please help me........:(