Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64041 - Ganttproject-1.9.11 installs but fails to run. Missing Java classes?
Summary: Ganttproject-1.9.11 installs but fails to run. Missing Java classes?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-14 12:53 UTC by Jan Van Uytven
Modified: 2004-09-16 11:59 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 Jan Van Uytven 2004-09-14 12:53:51 UTC
Ganttproject fails to run after a successful emerge:

wyvern@tombstone ~ $ ganttproject
Exception in thread "main" java.lang.NoClassDefFoundError: net/sourceforge/ganttproject/GanttProject
wyvern@tombstone ~ $

The same error happens when you try and run as root.

I also tried to install ganttproject on my laptop, and encountered the same error.

Reproducible: Always
Steps to Reproduce:
1. Emerge ganttproject-1.9.11
2. run ganttproject
3.
Actual Results:  
Ganttproject installed, but dies with an error when run.

Expected Results:  
Run ganttproject.

Portage 2.0.50-r11 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20040808-r
0, 2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(TM) MP 1900+
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-mp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/
kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/sh
are/config /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="-mcpu=athlon-mp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X alsa apache2 apm arts audiofile avi berkdb bidi bitmap-fonts bzlib
calendar canna cdr cjk crypt cscope cups curl dbm dga directfb divx4linux dvd
dvdr encode esd ethereal evo fbcon flac flash flatfile foomaticdb freetds
freewnn ftp gb gd gdbm gif gnome gnutls gphoto2 gpm gstreamer gtk gtk2 iconv icq
imagemagick imap imlib innodb jabber java jikes jpeg junit kde kerberos ldap
lesstif libg++ libwww mad maildir mbox mcal mhash mikmod mime ming mmap mmx
motif mozilla mpeg msn mssql mysql mysqli ncurses nls odbc offensive oggvorbis
opengl oss pam pcntl pcre pda pdflib perl php plotutils png posix postgres
python qt quicktime readline samba sasl scanner sdl session shared simplexml
slang snmp soap sockets spell ssl svg svga tcltk tcpd tetex tiff tokenizer
truetype unicode usb vhosts wmf wxwindows x86 xine xinerama xml xml2 xmlrpc xmms
xpm xprint xsl xv xvidzlib"
Comment 1 Jan Van Uytven 2004-09-14 13:02:10 UTC
A quick fix for this is to edit /usr/bin/ganttproject. Here's what I did:

/usr/bin/ganttproject:

#! /bin/sh
#export CLASSPATH=
#java net.sourceforge.ganttproject.GanttProject
java -jar /usr/share/ganttproject/lib/ganttproject-1.9.11.jar
Comment 2 Pedro Pais 2004-09-14 16:21:15 UTC
Another thing you can do is
java-config -p ganttproject
and add the output to your CLASSPATH
Comment 3 Thomas Matthijs (RETIRED) gentoo-dev 2004-09-16 11:59:02 UTC
fixed in ganttproject-1.9.11-r1.ebuild