Posts

Showing posts with the label javac

javac not generating class files when there are errors

javac not generating class files when there are errors I'm a hobby coder using CodeAnywhere to allow me to, well, code anywhere without having to set up a development environment. It's admittedly not the fullest featured IDE, but it gets the job done. One limitation is that I can't use Ant or Maven, so I have to figure out how to build using plain old javac (via SSH). So I've created a little bash script that creates a file with the relative paths to all the source files, and then pumps that into javac: find -name *.java > classes.txt javac @classes.txt The first line works fine and generates the anticipated output. The second one also appears to work, and even gives me compile errors (which I was expecting). However, there are a few classes that should compile, but the corresponding class files are not generated. Is this anticipated behavior? Why does it work when I manually include multiple file names as arguments (even when I include ones that generate errors), bu...