public static void unpackJar(String jarFile, String destDir) {
	DownloadScreen.unpackStart(new File(jarFile).getName().toString());
	try {
	    java.util.jar.JarFile jar = new java.util.jar.JarFile(jarFile);
	    Enumeration<JarEntry> enumi = jar.entries();

	    while (enumi.hasMoreElements()) {
		java.util.jar.JarEntry file = (java.util.jar.JarEntry) enumi
			.nextElement();
		java.io.File f = new java.io.File(destDir
			+ java.io.File.separator + file.getName());
		if (file.isDirectory()) { // if its a directory, create it
		    f.mkdir();
		    continue;
		}
		java.io.InputStream is = jar.getInputStream(file); // get the
		// input
		// stream
		java.io.FileOutputStream fos = new java.io.FileOutputStream(f);
		while (is.available() > 0) { // write contents of 'is' to 'fos'
		    fos.write(is.read());
		}
		fos.close();
		is.close();
	    }
	} catch (Exception e) {
	    DownloadScreen.unpackStop();
	    e.printStackTrace();
	}
	DownloadScreen.unpackStop();
    }