Java Development Environment for Emacs
Emacs Lisp Other
Switch branches/tags
Nothing to show
Pull request Compare This branch is 8 commits behind jdee-emacs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
test
vagrant
.dir-locals.el
.ert-runner
.gitignore
.travis.yml
CHANGES.md
Cask
LICENSE
Makefile
README.md
Vagrantfile
beanshell.el
efc.el
jcomplete.el
jdee-abbrev.el
jdee-activator.el
jdee-annotations.el
jdee-ant.el
jdee-archive.el
jdee-backend.el
jdee-bookmark.el
jdee-bsh.el
jdee-bug.el
jdee-bytecode.el
jdee-checkstyle.el
jdee-class.el
jdee-classpath.el
jdee-compile.el
jdee-complete.el
jdee-custom.el
jdee-cygwin.el
jdee-db.el
jdee-dbo.el
jdee-dbs.el
jdee-deps.el
jdee-ecj-flymake.el
jdee-ejb.el
jdee-files.el
jdee-find.el
jdee-flycheck.el
jdee-font-lock.api
jdee-font-lock.el
jdee-gen.el
jdee-help.el
jdee-imenu.el
jdee-import.el
jdee-issues.el
jdee-java-grammar.el
jdee-java-properties.el
jdee-javadoc-gen.el
jdee-javadoc.el
jdee-jdb.el
jdee-jdk-manager.el
jdee-juci.el
jdee-junit.el
jdee-keys.el
jdee-log.el
jdee-make.el
jdee-maven.el
jdee-open-source.el
jdee-package.el
jdee-parse-expr.el
jdee-parse.el
jdee-plugins.el
jdee-project-file.el
jdee-project.el
jdee-refactor.el
jdee-run.el
jdee-stacktrace.el
jdee-stat.el
jdee-test.el
jdee-util.el
jdee-which-method.el
jdee-widgets.el
jdee-wiz.el
jdee-xref.el
jdee.el
jtags
jtags.csh

README.md

MELPA Build Status

JDEE

The JDEE is an add-on software package that turns Emacs into a comprehensive system for creating, editing, debugging, and documenting Java applications.

About the project

As of 2015-07-13, https://github.com/jdee-emacs/jdee/ is the primary source repository.

See CHANGES.md for migration instructions.

Additional information can be found at http://jdee.sourceforge.net/rootpage.html and at https://github.com/jdee-emacs/jdee/wiki

Requirements

Emacs 24.4 is the oldest version that JDEE can be expected to run in.

If you install JDEE through the Emacs package system, it will take care of installing the prerequisites for you:

  • flycheck
  • memoize
  • dash These packages can be found on ELPA and/or MELPA.

JDEE also requires JDEE Server for some operations.

Installing with the Emacs package system

The project is available in MELPA. To install it do the following:

  1. Add MELPA to your .emacs or init.el if you don't have it:
;;; Add this at the top of the init.el file:
(require 'package)
(add-to-list 'package-archives
             '("melpa" . "https://melpa.org/packages/"))
(when (< emacs-major-version 24)
  ;; For important compatibility libraries like cl-lib
  (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize)
  1. Install JDEE from Emacs using its package manager:
M-x lisp-packages

There select JDEE and install: i x

  1. Install JDEE Server from github

Follow short readme at JDEE Server.

  1. Customize jdee-server-dir to make it point to directory with JDEE Server jars.

Warning! Don't install JDEE Server inside JDEE installed from MELPA (~/.emacs.d/elpa/jdee-xxx), because it will be deleted with next update of JDEE! Create a separate directory, for example: ~/.emacs.d/jdee-server.

Customized jdee-server-dir in your init file should look something like:

(custom-set-variables
 '(jdee-server-dir "/Users/you/.emacs.d/jdee-server"))
 )

For additional information, see the old installation instructions.

Installing from source (for JDEE devs only)

  1. Clone the github repository.
  2. Open the cloned JDEE directory in dired.
  3. Being in dired, install using command: package-install-from-buffer

For development you will need to install Cask:

  1. Install Cask.

  2. Run cask install from the JDEE directory (make sure that the cask command is in your PATH).

  3. Run the tests: make test

To use this built distribution without installation, in your .emacs add:

  (add-to-list 'load-path "/path/to/jdee")
  (require 'jdee)

Building the documentation in other formats

JDEE ships with documentation in Info format, but if you want you can generate the docs in other formats too.

To generate Info, HTML and PDF documentation:

  • Install texinfo.

  • For PDF generation, you also need texi2dvi, texinfo-tex, texlive-ec and texlive-cm-super.

  • In the doc/ subdirectory, run: makeinfo --info --html --pdf jdee.texi

Features

Some of the features of JDEE include:

  • source code editing with syntax highlighting, auto indentation using the native GNU Emacs Java mode
  • Symbol completion (jdee-complete-in-line)
  • Code generation: templates, import insertion/deletion/ordering etc.
  • browse JDK doc, using the browser of your choice (jdee-help-symbol and jdee-help-docsets)
  • browse your source code (jdee-find-class* and semantic integration)
  • compilation with automatic jump from error messages to responsible line in the source code using ant (jdee-ant-build).
  • run Java application in an interactive (comint) Emacs buffer
  • integrated debugging with interactive debug command buffer and automatic display of current source file/line when stepping through code (jdee-debug)
  • supports Oracle/OpenJDK Java 7
  • runs on any platform supported by GNU Emacs 24.3 and later
  • easily and infinitely customizable

Known Issues

  • Static imports don't quite work
  • Limited support for Java template beyond basic highlighting, parsing, and indenting.
  • Indentation after multi-line annotations might be unexpected

Troubleshooting

  • If you notice a bug, open an issue on Github Issues

Always include JDEE and Emacs versions when reporting issues. Thanks!

Community

  • The mailing list is still hosted by sourceforge. It includes jdee-announce, jdee-users, and jdee-devel.

Authors

  • Paul Kinnucan (original author and contributor)
  • Przemysław Wojnowski (primary maintainer/owner)
  • Paul Landes (maintainer)
  • Shyamal Prasad (maintainer)
  • Phil Lord (maintainer)