I have just committed the initial integration of Suraj Acharya's support for the eclipse java compiler as a JDEE compile server to the trunk. I have also added optional flymake support when using the ecj compiler. To use the ecj compile server, select this new option when customizing jde-compiler. You will need to give the path to ecj.jar (I think this currently needs to be an absolute path)
Once this is up and running normally, you can try enabling the flymake support by adding: (require 'jde-ecj-flymake) and ONE of the following: ;; Robust, slow method, separate instantation of the compiler for each flymake compilation (push '(".+\\.java$" jde-ecj-flymake-init jde-ecj-flymake-cleanup) flymake-allowed-file-name-masks) ;; Fast method that talks to a separate persistent compile server, but hacks with flymake to do it (push '(".+\\.java$" jde-ecj-server-flymake-init jde-ecj-flymake-cleanup) flymake-allowed-file-name-masks) to your startup code. You also will probably need to customize the variable jde-ecj-command-line-args to specify the options used during flymake (these may be different to your normal compile args) This includes James Ahlborn's modification to make the "fast" flymake less brittle than it was, although it does sometimes seem to fall over. Currently I use the following function to reset flymake when this happens: (defun my-flymake-reset () "Attempt to restart flymake for the current buffer" (interactive) (flymake-mode -1) (setq compilation-in-progress nil) (flymake-mode 1)) The structure of the jde-compiler variable has changed, so your existing customization may need to be reset. Let me know if/when you try this and find problems (there are bound to be some). Hopefully now this is in JDEE proper we can easily do any fixes required to keep it working nicely. Cheers, Len. ------------------------------------------------------------------------------ _______________________________________________ jdee-devel mailing list jdee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jdee-devel