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

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

php - Magento - Deleted Base url key -

symfony - imagine_filter() not generating the correct url in LiipImagineBundle -