How to batch compile all .java files under the whole folder (including subfolders) using javac


A while ago, I helped a colleague deal with a Java project that I didn’t know how to automate compilation. Because the project had no build tools (Build Tools) assistance, it completely relied on the built-in build tools of Eclipse, so the engineer didn’t know how to automatically build CI. . In fact, there are many solutions in the Shell environment that can be found on the Internet, but there are few solutions in the Windows environment. For this problem, I wrote an automated script to solve this problem. This script can be applied to almost any simple type. Java project.

continue reading

This article is reprinted from
This site is for inclusion only, and the copyright belongs to the original author.