So I want to run a class called WordFrequencyCounter which is nested in the folder: C:\Users\Mike\Documents\Computer Science\AI\Machine Learning\175\Assignment 2\src\ir\assignments\two\b
but when I go into that folder and run:
javac WordFrequencyCounter.java
it gives me an error because it says that it cannot find import ir.assignments.two.a.Frequency; specifically it says package ir.assignments.two.a does not exist, but this file is located in:
C:\Users\Mike\Documents\Computer Science\AI\Machine Learning\175\Assignment 2\src\ir\assignments\two\a
I also tried calling javac WordFrequencyCounter.java from within the folder: C:\Users\Mike\Documents\Computer Science\AI\Machine Learning\175\Assignment 2
but that does not work either. So what I want is to be able to compile and run WordFrequencyCounter and then feed it an input file that is located in C:\Users\Mike\Documents\Computer Science\AI\Machine Learning\175\Assignment 2 from the command line. I can do this from the IDE but can't get it to work through command line.
I think this is a classpath related problem but I couldn't find anything useful on this for my particular example, and nothing I tried worked.

Here's the main method for WordFrequencyCounter:
public static void main(String[] args) throws FileNotFoundException {
File file = new File(args[0]);
List<String> words = Utilities.tokenizeFile(file);
List<Frequency> frequencies = computeWordFrequencies(words);
Utilities.printFrequencies(frequencies);
}