JarPath jar = JarPath.create(path);
manifestPath = jar.lookup("META-INF/MANIFEST.MF");
contextPath = path.getParent();
}
if (manifestPath.canRead()) {
ReadStream is = manifestPath.openRead();
try {
Manifest manifest = new Manifest(is);
Attributes main = manifest.getMainAttributes();