unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Pankaj Jangid <p4j@j4d.net>
To: "Dan Čermák" <dan.cermak@cgc-instruments.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Emacs as Java ICE
Date: Wed, 27 Nov 2019 04:40:33 +0000	[thread overview]
Message-ID: <0100016eab293081-d08667ed-f4e0-4f4b-ab65-1814160dcb2f-000000@email.amazonses.com> (raw)
In-Reply-To: <87y2w2pgeg.fsf@cgc-instruments.com> ("Dan Čermák"'s message of "Tue, 26 Nov 2019 20:49:11 +0100")

Dan Čermák <dan.cermak@cgc-instruments.com> writes:
>> I must use Maven, Java and JavaFX.
>>
>> I see there are lot of solutions and it's a little  bit confusing I
>> use Java in an academic environment so I  need have indentation, auto
>> completion and snippets for Java and maven.

> I would suggest to take a look at lsp-mode
> (https://github.com/emacs-lsp/lsp-mode) and lsp-java
> (https://github.com/emacs-lsp/lsp-java).

This works very well for me. The only thing is that you need to
configure LSP server for Java yourself. There are many options for that
but the one that I use is *eclipse.jdt.ls*
(git@github.com:eclipse/eclipse.jdt.ls.git).

Once you build it then set this

(setq lsp-java-server-install-dir (expand-file-name
"<path-to>/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/"))

Regards,
-- 
Pankaj Jangid



  reply	other threads:[~2019-11-27  4:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-26 17:40 Emacs as Java ICE thierry.leurent
2019-11-26 18:23 ` Carlos Konstanski
2019-11-26 19:49 ` Dan Čermák
2019-11-27  4:40   ` Pankaj Jangid [this message]
2019-11-27 13:28 ` Filipp Gunbin
2019-11-27 15:55   ` Carlos Konstanski
2019-11-27 20:38 ` Bob Proulx
2019-11-28  5:22 ` Carlos Konstanski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0100016eab293081-d08667ed-f4e0-4f4b-ab65-1814160dcb2f-000000@email.amazonses.com \
    --to=p4j@j4d.net \
    --cc=dan.cermak@cgc-instruments.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).