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


when compile compiler code:

@echo off javac -d bin -sourcepath src/*.java src/sign/*.java src/alert.java pause 

i don't errors. when compiler code

@echo off javac -d bin -sourcepath src/*.java src/sign/*.java pause 

i errors compiler errors

the alert.java first file

alert.java

have tried one

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

all required jars , dependencies must set in class path before compilation or can use -classpath option while compiling.

--edit--

try 1 without -sourcepath option

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

Comments

Popular posts from this blog

c++11 - Intel compiler and "cannot have an in-class initializer" when using constexpr -

rest - Spring boot: Request method 'PUT' not supported -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -