[JAVA] Fixes to build jars correctly again
[JAR] Fixes to produce a manifest automatically