Bug 40012 - jedit-4.1 will not compile, and `emerge` exits with "Exception in thread 'main' java.lang"
Bug#: 40012 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: blocker Priority: P2
Resolution: FIXED Assigned To: java@gentoo.org Reported By: iamtheinformant@yahoo.com
Component: Applications
URL: 
Summary: jedit-4.1 will not compile, and `emerge` exits with "Exception in thread 'main' java.lang"
Keywords:  
Status Whiteboard: 
Opened: 2004-01-31 13:07 0000
Description:   Opened: 2004-01-31 13:07 0000
When I try to emerge jedit (jedit-4.1), immediately after "source unpacked", it
complains about "Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/Main", and exits with compile error. This happens whether
I set "jikes" as a USE flag or not...

Reproducible: Always
Steps to Reproduce:
1. Have installed Gentoo system.
2. Run (as root) `emerge jedit` [OR] `USE="jikes" emerge jedit`
Actual Results:  
The ebuild quit immediately after source unpack with the following error:

>>> emerge (1 of 1) app-editors/jedit-4.1 to /
>>> md5 src_uri ;-) jedit41source.tar.gz
>>> Unpacking source...
>>> Unpacking jedit41source.tar.gz to /var/tmp/portage/jedit-4.1/work
>>> Source unpacked.
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/Main

!!! ERROR: app-editors/jedit-4.1 failed.
!!! Function src_compile, Line 40, Exitcode 1
!!! compile problem


Expected Results:  
It should have actually compiled (and installed)

Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.0-gentoo)
=================================================================
System uname: 2.6.0-gentoo i686 AMD Athlon(tm) XP 1600+
Gentoo Base System version 1.4.3.10p1
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo
http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apm arts avi berkdb bonobo cdr crypt cups encode esd
foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad
mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib
perl png python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd
truetype x86 xml2 xmms xv zlib"

------- Comment #1 From Chris Aniszczyk (RETIRED) 2004-02-01 10:57:16 0000 -------
What's the output of ant -version?

------- Comment #2 From matt 2004-02-01 12:18:33 0000 -------
Okay, after re-merging ant, `ant -version` shows version 1.5.4 -- this wasn't
caught in the ebuild I don't think, as Jedit seems to require 1.5.4 (or else
the other version went bad on me...). Compile now seems to be working...

------- Comment #3 From Chris Aniszczyk (RETIRED) 2004-02-01 13:03:45 0000 -------
Created an attachment (id=24775) [details]
jedit-4.2_pre8-r1.diff

diff to fix the issue. It seems as of late, jEdit requires at least ant 1.5 :)

------- Comment #4 From Adrian Almenar 2004-02-04 20:52:33 0000 -------
Commited.