I have the following java file in C:\projects\com.company
folder:
package com.company;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.logging.Logger;
import weka.classifiers.Classifier;
import weka.classifiers.evaluation.Evaluation;
import weka.classifiers.functions.MultilayerPerceptron;
import weka.core.Instances;
public class MyProgram {
public static void main(String[] args) {
//want to check the args parameters
}
}
Then I try to run the following command in C:\projects
directory:
java com.company.MyProgram C:\inputs\test.txt pro2 pro3
Then expect to get 3 parameters in the main method's args. However gives, "Error: Could not find or load main class com.company.MyProgram" error.
So, the questions:
1. What is the problem with this code or command?
2. How can I debug this code using IntelliJ and check the args after running java com.company.MyProgram C:\inputs\test.txt pro2 pro3
command on cmd?