First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 89711
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: BlaisorBlade <blaisorblade_spam@yahoo.it>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
jikesme jikes wrapper script text/plain Karl Trygve Kalleberg (RETIRED) 2005-05-16 06:34 0000 868 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 89711 depends on: 92786 127816 Show dependency tree
Bug 89711 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-04-19 14:11 0000
Jikes requires CLASSPATH to be set and to point to the rt.jar file provided by 
the JDK; this has been removed in the recent "sun-jdk" ebuilds (and maybe in 
other similar JDK ebuilds), so jikes fails.

------- Comment #1 From Jakub Moc (RETIRED) 2005-04-19 14:36:56 0000 -------
*** Bug 89713 has been marked as a duplicate of this bug. ***

------- Comment #2 From BlaisorBlade 2005-04-19 14:41:50 0000 -------
(Btw, sorry for the dup. report, I submitted the form twice).

------- Comment #3 From Jan Brinkmann (RETIRED) 2005-04-20 10:43:30 0000 -------
please provide the output of packages which fail to emerge, thanks

------- Comment #4 From BlaisorBlade 2005-04-21 07:59:59 0000 -------
No package fail in emerging. Jikes fail when running.

In my (auto-fixed) setup, I have:
$ echo $CLASSPATH
/opt/sun-jdk-1.5.0.02/jre/lib/rt.jar:.

And Jikes works like a charm.

Here's a simulated error (I've fixed the problem by hand, so I have to unset CLASSPATH to produce the behaviour):

(unset CLASSPATH; jikes Parser.java)

Found 1 system error:

*** Semantic Error: You need to modify your classpath, sourcepath, bootclasspath, and/or extdirs setup. Jikes could not find package "java.lang" in:
                .

It's like with the very old javac releases, which couln't find the built-in libraries unless CLASSPATH was set to the correct path.

------- Comment #5 From Jan Brinkmann (RETIRED) 2005-05-16 04:39:15 0000 -------
we're not going to do this, it's not very clean to do so and if you want to
compile things with jikes manually you can specifiy the classpath on the
command line. 

------- Comment #6 From Karl Trygve Kalleberg (RETIRED) 2005-05-16 05:49:18 0000 -------
This is still a bug, even though we won't clutter the CLASSPATH. What we should
do is provide a wrapper script for Jikes which determines the actual path to
the runtime through java-config.

------- Comment #7 From Karl Trygve Kalleberg (RETIRED) 2005-05-16 06:34:37 0000 -------
Created an attachment (id=59012) [edit]
jikes wrapper script

A quick hack for autodetecting the proper bootclasspath at jikes invocation
time. We could replace the /usr/bin/jikes with this script, then rename the ELF
file to /usr/bin/jikes-bin. (Seems like a common enough practice).

Has been tested on blackdown and ibm. Jrockit, sun and kaffe probably needs
some lovin', too.

------- Comment #8 From Jan Brinkmann (RETIRED) 2005-05-17 11:52:16 0000 -------
imho the wrapper script is a good idea, but we should maybe wait until
java-config has an option that can return the path to the runtime foo. :)

------- Comment #9 From BlaisorBlade 2005-07-04 08:39:06 0000 -------
IMHO there's no reason why "setting the CLASSPATH in the environment" is 
unclean. Basically, it's required by Jikes (and possibly by other apps) and it's 
done everywhere Jikes is used.

That said, I've no problem if you want to use another solution, but I don't like 
the practice "let's leave this broken until it can be done properly". For myself 
I've already fixed the problem by hand-editing, through it breaks again at JDK 
updates, but I'd like it to work well by default.

Anyhow, what's the problem about Java-config? Fixing it shouldn't take so long, 
right?

------- Comment #10 From Thomas Matthijs (RETIRED) 2005-07-04 09:16:49 0000 -------
broken solutions only make things worse

and it will take as long until its done, if you want to be a jackass go 
somewhere else, or come with some patches

and it has been done as part of a bigger change that is planned and we are still 
working on

------- Comment #11 From Patrizio Bassi 2005-11-26 01:50:41 0000 -------
instead of doing a wrapper,  isn't better to add a jikes eclass to do that? 

------- Comment #12 From Josh Nichols (RETIRED) 2005-12-04 20:18:22 0000 -------
I see no benefit / sense in making a jikes eclass.

It is also worth noting that the jikes that lives in axxo-overlay does provide a
jikes wrapper.

------- Comment #13 From Josh Nichols (RETIRED) 2006-06-30 19:45:24 0000 -------
Fixed with the new Java system.

First Last Prev Next    No search results available      Search page      Enter new bug