When I try to execute my .java program from terminal Mac using command : javac filename.java inputfile
It is throwing the error that "inputfile" are only accepted if annotation processing is explicitly requested
but in the program I do have command as follow:
String fileinput = args[0];
File file = new File(fileinput);
out= getContents(file);
Thanks in advance
java ClassName inputfileas the command to execute the class. You are currently usingjavacwhich is used to compile the.javafile.