I've create simple java project with single class - Main with main method printing Hello.
package com.foo;
public class Main {
public static void main(String[] args) {
System.out.println("Hello!");
}
}
Code was compiled to bin directory. I'm trying to create jar using command
jar -cfe project.jar com.foo.Main -C bin\
with no results, always returning Error parsing file arguments error.
I also tried many different variations, like
jar --create --file project.jar --main-class com.foo.Main -C bin
but none of it worked. I'm using Java 16