So I have a java program that reads a file specified by using args
$ java Main somefile.txt
But how do I do it when I make it into a jar? Let's say that foo.jar contains
-META-INF
-Main.class
-someFile.txt
And run it with (without specifying args after)
java -jar foo.jar
How do I do that? Note that I also use gradle to assemble the jar.