I have a java program that is supposed to take an file name from the cmd. My main function looks like this:
public static void main(String[] args) {
try {
solve(args);
} catch (IOException e) {
e.printStackTrace();
}
}
The args is a file name that I send it to the function solve. I am using eclipse. I went to Run menu and then, Run Configuration, and I pasted the file path in the Arguments tab for both the Program arguments and the Vm arguments. When I run my program using eclipse, I get the following error:
Error: Could not find or load main class C:\MyFolder\MyFile