From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ludwig, Mark" Newsgroups: gmane.emacs.help Subject: RE: Emacs and Java Date: Fri, 14 Sep 2012 13:35:18 +0000 Message-ID: References: <87har0onhj.wl%f@mazzo.li> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1347629760 8572 80.91.229.3 (14 Sep 2012 13:36:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 13:36:00 +0000 (UTC) To: Francesco Mazzoli , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 15:36:02 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TCW3u-0008AF-1q for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 15:36:02 +0200 Original-Received: from localhost ([::1]:33176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCW3q-0002R0-7Q for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 09:35:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCW3e-0002PZ-WE for help-gnu-emacs@gnu.org; Fri, 14 Sep 2012 09:35:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCW3a-0000Fa-PH for help-gnu-emacs@gnu.org; Fri, 14 Sep 2012 09:35:46 -0400 Original-Received: from usslmhub002.ugs.com ([134.244.32.85]:1689 helo=ugs.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCW3a-0000FD-II for help-gnu-emacs@gnu.org; Fri, 14 Sep 2012 09:35:42 -0400 Original-Received: from USSLMMBX002.net.plm.eds.com (161.134.138.62) by USSLMHUB002.net.plm.eds.com (134.244.32.85) with Microsoft SMTP Server (TLS) id 14.2.318.1; Fri, 14 Sep 2012 08:35:19 -0500 Original-Received: from USSLMMBX003.net.plm.eds.com ([169.254.2.93]) by USSLMMBX002.net.plm.eds.com ([169.254.1.49]) with mapi id 14.02.0318.001; Fri, 14 Sep 2012 08:35:19 -0500 Thread-Topic: Emacs and Java Thread-Index: AQHNkmt4QjkSjmqIxE20KBht3jJ+A5eJ1WIQ In-Reply-To: <87har0onhj.wl%f@mazzo.li> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [146.122.224.120] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) X-Received-From: 134.244.32.85 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86763 Archived-At: > -----Original Message----- > From: Francesco Mazzoli > Sent: Friday, September 14, 2012 6:25 AM > To: help-gnu-emacs@gnu.org > Subject: Emacs and Java >=20 > Hi, >=20 > As much as I dislike Java, I find myself having to write Java code from t= ime to > time, and I'm sure that a lot of you are in the same situation. >=20 > Given that, I find it very surprising that support for the Java language = in > Emacs is abysmal. >=20 > I tried: >=20 > * java-mode: does not support any modern Java construct, and with > modern I > mean >=3D Java 5 (generics, foreach loops, enums). > * JDEE: seems to be completely unmaintained and barely working with > modern > emacsen, and lacking support for post-2004 Java as well. > * malabar-mode : > promises support > for what JDEE is lacking. Building with stock Maven and Emacs on Ubu= ntu > 12.04 fails. There is a fork () > that seems more maintained but building fails there as well with a di= fferent > error. >=20 > So it seems that there is no way to at least edit comfortably Java code, = let > alone have flymake, semantic features, etc. This seems a huge gap in wha= t is > the best editor out there. >=20 > Am I correct, or is there hope in some project I haven't considered? > malabar-mode seems to be the best candidate (if you can get it working) b= ut > frankly I'm not that comfortable using it since it pulls a huge number of > dependencies and I don't want something to fancy anyway. I use cc-mode, which does a reasonable job for my Java work. I have to confess to being unhappy about the fact that cc-mode knows nothin= g about the object-oriented nature of Java. I make up for that myself thro= ugh heavy use of tags, which I build with custom extras to pick up interfac= e definitions. Note further that I have not tried the current etags (v24), which might pic= k up interface definitions.... Hope this helps, Mark