compile server : Java Glossary

compile server
Javac takes quite a long time to compile even the tiniest class. It takes a long time to stagger to its feet to get started. Then in rips along at a fast pace. What you can do is keep a copy of Javac permanently running, and feed it stuff to compile on the fly, saving the startup time. In a team environment, you can further avoid each team member recompiling if you have an automated scheme to keep recompiling the universe or the changes from time to time.

It is simpler than you would imagine given the sun.tools.javac. Main to implement the server. Here is code for a server and submitter. The submitter could further be speeded up by running constantly or being JET (Just Enough Time) compiled or written in C. Here is some sample code for a Compile Server and Compile submitter using a raw socket connection. Stuart Gratham explains the idea.


CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/compileserver.html J:\mindprod\jgloss\compileserver.html
logo
Please email your , letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email. If you want your message, your name or email kept confidential, not considered for public posting, please explicitly specify that. Unless you state otherwise, I will treat your message as a letter to the editor that I may or may not publish in the feedback section. After that, it will be too late to retract it. If you disagree with something I said, please quote it and cite the web page where you found it, tell me why you think it is wrong, and, if possible, provide some supporting evidence. Threatening to kill me or spouting obscenities has yet to persuade me to change my mind.
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.179.210]
You are visitor number 7,366.