So the thing is, I'm using Linux and I have created a few classes, one of which is Main. If I try to compile from the VSCode run, it works very well, but I need to pass some arguments to the file, when I run it, but I have the following errors when I try to run from terminal:
Main.java:6: error: cannot find symbol
InputDevice id = new InputDevice();
^
symbol: class InputDevice
location: class Main
Main.java:6: error: cannot find symbol
InputDevice id = new InputDevice();
^
symbol: class InputDevice
location: class Main
Main.java:7: error: cannot find symbol
OutputDevice od = new OutputDevice();
^
symbol: class OutputDevice
location: class Main
Main.java:7: error: cannot find symbol
OutputDevice od = new OutputDevice();
^
symbol: class OutputDevice
location: class Main
Main.java:9: error: cannot find symbol
Application n = new Application(id, od);
^
symbol: class Application
location: class Main
Main.java:9: error: cannot find symbol
Application n = new Application(id, od);
^
symbol: class Application
location: class Main
6 errors
error: compilation failed
The thing is, those are classes created by myself, and it seems to not see them(My guess) and this is the command I use:
java Main.java Application.java OutputDevice.java InputDevice.java
Any help would be appreciated