diff --git a/build-tor.py b/build-tor.py
index e9c11616ab83c28c48d3fb6c813b264746d9e44b..1385d04f35fb5d6aa73515869d1e68ad6c1134c1 100755
--- a/build-tor.py
+++ b/build-tor.py
@@ -48,7 +48,7 @@ def main():
     jar_name = get_sources_file_name(versions)
     jar_path = os.path.abspath(os.path.join(REPO_DIR, jar_name))
     rel_paths = [os.path.relpath(f, external_dir) for f in sorted(jar_files)]
-    check_call(['jar', 'cnf', jar_path] + rel_paths, cwd=external_dir)
+    check_call(['jar', 'cf', jar_path] + rel_paths, cwd=external_dir)
 
     # create POM file from template
     tor_version = get_tor_version(versions)
diff --git a/install-dependencies.sh b/install-dependencies.sh
index 76b463c6b93fc4c0ca9e43c8bc960bdeaff1eb3f..92386d23db3da286eca1597aa3a3b6d5a5a818fc 100755
--- a/install-dependencies.sh
+++ b/install-dependencies.sh
@@ -12,4 +12,5 @@ apt-get install -y --no-install-recommends \
 	autopoint \
 	libtool \
 	automake \
-	binutils-multiarch
+	binutils-multiarch \
+	fastjar