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

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -