Javac fails to find symbol when wildcard is used, but works when .java file is manually specified

余生长醉 提交于 2019-12-05 10:10:30

Have you tried this one

Navigate to src directory  
javac -d ../bin *.java sign/*.java

All the required jars and dependencies must be set in class path before compilation or you can use -classpath option while compiling.

--EDIT--

Try this one without -sourcepath option

javac -d bin src/*.java src/sign/*.java

The -sourcepath option expects a path, and you aren't giving it one.

When you do this

javac -d bin -sourcepath src/*.java src/sign/*.java

You are only picking up the files in src/sign/, since src/*.java is being evaluated as the source path.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!