Problem with the terminal javac does not work i have to add src.

When i use javac  Main.java i get the next message:

error: file not found: Main.java
Usage: javac <options> <source files>
use --help for a list of possible options
PS C:\Users\cihan\IdeaProjects\Main> 
 

 

if i write javac src/Main.java and after java src/Main.java   it runs. 

normaly it should work with javac, on the vs code i have no problem

0
1 comment

Hi sir

How can i do that? 

Is it from the terminal of intelije? 

0

Please sign in to leave a comment.