JAR Packaging, some error fixes