My Java program imports a non JDK class downloaded and placed in the same directory as my Java file. How do I let VS Code know the path to this class so I don't get the red under squiggle for class not resolved error?
Currently when I compile I need to java -cp /path/to/Non-JDK/class.jar MyClass.java
is there a way to add /path/to/Non-JDK/class.jar
to the search path of the compiler so I can just java MyClass.java
?