I have a folder with the following subfolders and files
proj
src
Class.java
test
Test.java
The file Test.java issues an import org.junit.* command, and uses the class in Class.java.
I've compiled Class.java. I'm now trying to compile Test.java. While in the proj/test folder, I tried the following and several variations on it:
javac -cp ../src org.junit Test.java
and I get several errors, all related to the fact that it's not finding org.junit and Class.java. For instance
error: package org.junit does not exist
and in reference to a class in Class.java:
error: cannot find symbol
The nearest that I've found to my question are about running a test from the command line, but this seems to have already successfully compiled and this one but it has a .jar file, which I don't have and I suspect I shouldn't be making one just now. Also because I'm not using .jar files, this question does not apply to my problem.