Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21735 - jikes needs rt.jar in classpath
Summary: jikes needs rt.jar in classpath
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-26 17:42 UTC by Cesar Eduardo Barros
Modified: 2004-02-25 12:34 UTC (History)
2 users (show)

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 Cesar Eduardo Barros 2003-05-26 17:42:24 UTC
Due to bug 18067, the default CLASSPATH was changed to not have rt.jar. However,
jikes does not seem to know what it should do with a directory instead of a jar.

Reproducible: Always
Steps to Reproduce:
1.Set the system vm to sun-jdk-1.4.1.02
2.Try to compile anything with jikes 1.18
Actual Results:  
$ jikes Hello.java 

Found 1 system error:

*** Semantic Error: You need to modify your classpath, sourcepath,
bootclasspath, and/or extdirs setup. Package "java/lang" could not be found in: 
                /opt/sun-jdk-1.4.1.02/jre/lib
                /opt/sun-jdk-1.4.1.02/lib/tools.jar
                .
                .



Expected Results:  
It should find the rt.jar using the same algorithm the sun vm uses.

Portage 2.0.48 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.5.68 i586 AMD-K6(tm) 3D processor
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow arts avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb alsa
gdbm berkdb slang readline tetex aalib nas ggi tcltk java guile ruby mysql
postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt
motif opengl ldap cdr acl acpi apache2 bonobo canna cjk curl dga doc dvd emacs
ethereal evo fbcon firebird flash freetds freewnn gb gd gnomedb gtk2 gtkhtml
hbci imap informix innodb ipv6 jikes junit ladcca lcms leim libgda maildir
memlimit mozaccess mozcalendar mozilla mozinterfaceinfo mozp3p mozsvg mozxmlterm
mpi mule nptl oav objc odbc ofx pic plotutils pnp samba sasl slp snmp tiff
vim-with-x wmf Xaw3d xface xml xosd zeo -apm -gnome -svga -kde"
COMPILER="gcc3"
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=k6 -mmmx -m3dnow -ggdb3 -Os -pipe -momit-leaf-frame-pointer"
CXXFLAGS="-march=k6 -mmmx -m3dnow -ggdb3 -Os -pipe -momit-leaf-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache sandbox buildpkg strict fixpackages"
Comment 1 Adrian Almenar 2003-08-14 22:43:59 UTC
Fixed this on sun-jdk and it worked ok, have to fix it on other virtual 
machines. 
Comment 2 Haroon Rafique 2003-09-19 10:56:03 UTC
As a point of caution, for the ibm jdk (dev-java/ibm-jdk-1.4.1), there is no rt.jar. To get jikes to work I had to set my CLASSPATH to instead have /opt/ibm-jdk-1.4.1/jre/lib/core.jar. After that jikes worked fine.
Comment 3 Adrian Almenar 2003-10-03 19:49:55 UTC
Fixed in ibm-jdk's.
Comment 4 Adrian Almenar 2003-10-03 19:51:45 UTC
This need to be addressed on jrockit ebuild, and on blackdown ebuilds.
Comment 5 Adrian Almenar 2004-01-04 05:17:33 UTC
Moving to java team.
Comment 6 Adrian Almenar 2004-01-04 05:20:22 UTC
Moving to java@gentoo.org
Comment 7 Dylan Carlson (RETIRED) gentoo-dev 2004-02-25 12:34:25 UTC
Checked the blackdown, jrockit packages.  Everything looks tight.  Closing.