Difference between revisions of "Java"

From WikEmacs
Jump to navigation Jump to search
(Added new hopefully to be extended list of articles that talk about editing java with emacs.)
(add lsp)
 
(3 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
* {{ModeLink|java-mode}} provides basic Java 1.4 syntax highlighting.
 
* {{ModeLink|java-mode}} provides basic Java 1.4 syntax highlighting.
 
* [https://github.com/senny/emacs-eclim emacs-eclim] communicates with the [http://eclim.org/ eclim] plugin in Eclipse to get a headless Eclipse instance do the heavy-lifting of completion, simple refactoring, building, and code navigation when editing files in Emacs.
 
* [https://github.com/senny/emacs-eclim emacs-eclim] communicates with the [http://eclim.org/ eclim] plugin in Eclipse to get a headless Eclipse instance do the heavy-lifting of completion, simple refactoring, building, and code navigation when editing files in Emacs.
* [https://github.com/mopemope/meghanada-emacs meghanada-emacs] aims to help with Gradle and Maven, code completion, jumping to declarations and more. It's based on meghanada-server written in Java, for JDB >= 1.8.
+
* [https://github.com/mopemope/meghanada-emacs meghanada-emacs] aims to help with Gradle and Maven, code completion, jumping to declarations and more. It's based on meghanada-server written in Java, for JDK >= 1.8.
 +
 
 +
=== Language Server Protocol (lsp-mode) ===
 +
 
 +
[https://github.com/emacs-lsp/lsp-mode lsp-mode] is a client to [https://github.com/Microsoft/language-server-protocol/ Microsoft's LSP]. It aims to provide IDE-like experience by providing optional integration with the most popular Emacs packages like company, flycheck and projectile.
 +
 
 +
It is reported to work well for Java projects, you should check it out !
  
 
==See also ==
 
==See also ==
Line 13: Line 19:
 
==List of Java editing related Articles==
 
==List of Java editing related Articles==
 
* [http://mp.vv.si/blog/emacs/coding-in-java-with-emacs-and-jdee/ jdee and checkstyle]
 
* [http://mp.vv.si/blog/emacs/coding-in-java-with-emacs-and-jdee/ jdee and checkstyle]
 +
* [http://mp.vv.si/blog/emacs/writing-java-code-with-emacs/ Really short article on how to auto complete java package names]
 +
* [http://www.goldsborough.me/emacs,/java/2016/02/24/22-54-16-setting_up_emacs_for_java_development/ Comprehensive article (based on eclim)]
 +
* [https://dzone.com/articles/why-not-emacs Why not emacs]
 
[[Category:Programming languages]]
 
[[Category:Programming languages]]
 
[[Category:Java]]
 
[[Category:Java]]

Latest revision as of 07:11, 25 June 2019

Java support comes shipped with Emacs in the form of java-mode.

List of notable Java modes

  • malabar-mode is a Java mode which was originally by Espen Wiborg. It has Maven integration, JUnit integration, support for Java generics, simple refactoring support and more. (no longer maintained)
  • JDEE, Java Development Environment for Emacs, has intelligent Java code completion among other things. (jdee is currently maintained on github)
  • java-mode provides basic Java 1.4 syntax highlighting.
  • emacs-eclim communicates with the eclim plugin in Eclipse to get a headless Eclipse instance do the heavy-lifting of completion, simple refactoring, building, and code navigation when editing files in Emacs.
  • meghanada-emacs aims to help with Gradle and Maven, code completion, jumping to declarations and more. It's based on meghanada-server written in Java, for JDK >= 1.8.

Language Server Protocol (lsp-mode)

lsp-mode is a client to Microsoft's LSP. It aims to provide IDE-like experience by providing optional integration with the most popular Emacs packages like company, flycheck and projectile.

It is reported to work well for Java projects, you should check it out !

See also

java-mode

List of Java editing related Articles