A millimeter wave free-electron laser driven by electrostatic accelerator has been constructed, and simulation codes were developed. Main components such as high current electron gun, power supply for electron gun, electrostatic accelerator, permanent-magnet undulator and millimeter-wave cavity have been developed. Simulation codes calculating the output power and trajectory of electron beam in undulator have been developed. The energy of the electron beam is 430 keV and the output wavelength is 3-10 mm. (Author).