The directory of QueryFeatureExtract.java is like
gen-java/
└── query_feature
└── QueryFeatureExtract.java
and the java file ThriftClient.java which use QueryFeatureExtract is in the same folder with gen-java, I want to compile Client.java with
javac -classpath libthrift-0.9.1.jar:slf4j.jar -sourcepath gen-java/query_feature/ ThriftClient.java
Then the error shows
ThriftClient.java:16: error: cannot access QueryFeatureExtract
QueryFeatureExtract.Client client = new QueryFeatureExtract.Client(protocol);
^
bad source file: gen-java/query_feature/QueryFeatureExtract.java
file does not contain class QueryFeatureExtract
Please remove or make sure it appears in the correct subdirectory of the sourcepath.
1 error