My problem is that vscode isnt compiling my java file.
I type in javac <filename>.java and it just wont compile because it cant recognize a package that I imported. I also cant run it using java <filename>.java
I made sure to use maven for my package manager and I already put the correct dependency in the pom.xml file so everything should be fine. All my path variables and systems variables are also fine so I dont know what else could be wrong?
I tried using the code runner extension and again it didnt work.
On the other hand to compile and run, I had to use the vscode native "Run Java" and this is the only way I can compile and run the program.
Why isnt the terminal command to compile and run not working?