Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48980 - jlex ebuild creates wrong-structured jar-file
Summary: jlex ebuild creates wrong-structured jar-file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-25 16:43 UTC by Philippe Van Deyck
Modified: 2004-04-25 20:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Van Deyck 2004-04-25 16:43:43 UTC
The jlex ebuild (jlex-1.2.6) creates a plain jar file with all necessary classes, but they sould reside in a subdirectory 'JLex' within that jar-file. Otherwise they can't be used (all files are contained within package JLex, so they must be in a directory JLex).

When I extract the jar, make the directory, put all files in it, and recreate the jar, everything works fine.

(I'm not sure i posted this bug in the wright place, but his is the best i found )

Reproducible: Always
Steps to Reproduce:
1.emerge jlex
2.java-config -B jlex
3./usr/sbin/env-update && source /etc/profile
4.wget http://www.cs.princeton.edu/~appel/modern/java/JLex/current/sample.lex
5.java JLex.Main sample.lex

Actual Results:  
Exception in thread "main" java.lang.NoClassDefFoundError: JLex/Main

Expected Results:  
Processing first section -- user code.
Processing second section -- JLex declarations.
Processing third section -- lexical rules.
Creating NFA machine representation.
NFA comprised of 185 states.
Working on character classes.:::::::::::::::::......::..::......:..........::...
..........::..::.
NFA has 29 distinct character classes.
Creating DFA transition table.
Working on DFA states...........................................................
...................
Minimizing DFA transition table.
47 states after removal of redundant states.
Outputting lexical analyzer code.

Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gentoo-r8)
=================================================================
System uname: 2.4.20-gentoo-r8 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.9
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -pipe -fforce-addr -fomit-frame-pointer 
-foptimize-sibling-calls  -finline-functions -fmerge-all-constants 
-fthread-jumps -funroll-loops"
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.2/share/config /usr/kde/3/share/config 
/usr/lib/mozilla/defaults/pref /usr/share/config 
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ 
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ 
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe -fforce-addr -fomit-frame-pointer 
-foptimize-sibling-calls  -finline-functions -fmerge-all-constants 
-fthread-jumps -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.
org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa apm arts avi berkdb cdr crypt cups dga dvd encode esd flash 
foomaticdb gb gdbm gif gnome gpm gtk gtk2 guile imlib java jikes jpeg junit kde 
libg++ libgda libwww mad matrox mikmod mmx motif mozilla mpeg ncurses nls 
oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba 
sdl slang spell ssl svga tcltk tcpd tetex truetype usb x86 xml2 xmms xv zlib"
Comment 1 Chris Aniszczyk (RETIRED) gentoo-dev 2004-04-25 20:17:53 UTC
Fixed in portage, thanks.