For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.
I'm trying to compile the files using sourcepath option but it seems it is not working, I'm using the following cmd command:
C:\temp\java>javac -sourcepath ./src -d ./classes -verbose
But getting this error:
C:\temp\java>javac -sourcepath ./src -d ./classes -verbose javac: no source files Usage: javac <options> <source files> where possible options include:
I believe -sourcepath is used to specify where javac should look for dependent classes' source code. The command you posted does not inclue any target file(s). I think you are looking for something like
javac -d ./classes -verbose ./src/*.java