I'm building a desktop app on Java (11) and compiled with Maven, but I need to send a Filepath as an argument to read it:
public class App {
public static void main(String[] args) {
if (args.length == 0) {
System.out.println("File name not specified.");
System.exit(1);
}
System.out.println(args[0]);
readFile(args[0]);
}
}
I don't know how to run the app sending that parameter or which command is needed in the Command Line