Ive created a simple java program (maven with pom), which, when I run some command with CMD, should create a file at the given path ... I do mvn clean install
that end successfully, now I want to use this created jar from the command line, as shown below:
java -jar "/Users/i012/IdeaProjects/myproj/target/test.rts-1.0-SNAPSHOT.jar" path2genfile2create
Why should my program run (this is the first time I try something like this ...)
But the error I get is:
no main manifest attribute, in /Users/i012/IdeaProjects/myproj/target/test.rts-1.0-SNAPSHOT.jar
What could be missing here? which exhibits the attribute ?
The error does not arise from the created class. ...
I created some META-INF / MANIFEST.MF without helping, but maybe wrong