A Java compiler is a program that takes the text file work of a developer and compiles it into a platform-independent Java file.