Start javac as background process under Linux
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Tuesday, December 11, 2001 04:35 PM


Is there any way I can start javac as a background process under Linux so that java program will be automatically compiled without creating a new process to invoke javac


Re: Start javac as background process under Linux

Posted By:   Nathan_Meyers  
Posted On:   Wednesday, December 12, 2001 11:24 PM

I'm having a little trouble understanding the question, but here's what I think you're asking: can some always-running process (like a daemon) automatically recompile a project whenever source is changed? Is that the question?

If that's what you're looking for, I recommend this article, which talks about combining JUnit and ant into a system for continuous rebuilding and testing of projects.

If you want the java compiler to solve this problem by itself, it can't: it just compiles the files you ask it to and then it exits. But the article describes how to use several tools together to set up such a system.

About | Sitemap | Contact