The second error is caused because you are trying to access to args[0] and args1, while you haven't informed any argument at your command line. It should look similar to this:
java -jar JavaWdslApp.jar valueForPath1 valueForFileName
I recommend you to check the java command reference.