Skip to Main Content

Infrastructure Software

Announcement

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.

OCFS2 Best Practices Guide

Javed A Mohammed-OracleFeb 8 2016 — edited Oct 21 2016

Comments

800560

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
1 - 1

Post Details

Added on Feb 8 2016
2 comments
1,366 views