When I use the java/javac command on cmd as in
javac Theory/HelloWorld.java
java Theory.HelloWorld
it works just fine, yet when I do that on the VSCode terminal it doesn't work at all and says "Error: Could not find or load main class Theory.HelloWorld. Caused by: java.lang.ClassNotFoundException: Theory.HelloWorld"
Running the code with the Run Java button works just fine, it's just when I want to add arguments Any ideas?
PS: Using the java -cp . Theory/HelloWorld works fine, it's just that it becomes a mess when I try to use that command when the main class uses different classes
I've tried set CLASSPATH=.
Clean Java Language Server Workspace
Used different terminals
Configured Classpath in VSCode with the "." path