So I have a file tree in Linux that looks like this:
The problem is that when I try to type in Terminal:
javac ConfigTest.java
I get the error:
ConfigTest.java:2: error: package keyboard_warriors does not exist
import keyboard_warriors.*;
^
This is really bugging me and I could not find any answers anywhere. If you could solve my problem, I would be a very happy person.
It's not going to recognize a directory outside of the classpath as being part of the classpath.
What you probably want is to include another folder inside of where your test is being run:
test/
keyboard_warriors/
ConfigTest.java
ConfigParser.java
This also presumes that you have declared these classes to be in the keyboard_warriors
classpath, by this:
package keyboard_warriors;
Depending on how you're compiling these classes, you'd have to add it to the classpath with the -cp
flag on javac
.