Re: Interesting results...

2002-03-21 Thread Mason Loring Bliss


On Thu, Mar 21, 2002 at 08:02:11AM +0100, Erik Corry wrote:

  *** Warning: The type ImageNativeProducer is defined in the file Image.java 
but referenced in the file java/awt/Toolkit.java. It is recommended that it be 
redefined in ImageNativeProducer.java.
 
 It's only a warning.

Ah. I hadn't dug into the build infrastructure yet, and I blindly assumed
that make in kaffe/libraries/javalib would give me Klasses.jar, and I
assumed that since it went as quick as it did, it had stopped after the
first warning.

Indeed, using Jikes 1.13 to build Klasses.jar, however it's being done,
I'm able to then say javac foo.java and produce a quite functional
foo.class.

If Klasses.jar is toasty for everyone, would it perhaps make sense for
a corrected version to be committed?

I'm still dead new to Java and class library layout, so I'm not quite
sure where javac fits into things - it seems to be doing the same thing
Jikes does, and it's certainly working, which makes me wonder if it could
actually produce itself now that I've bootstrapped it with Jikes... I
guess I need to hit the FAQs some more and give some more time to my
book. (I'm using Just Java^2, FWIW.)



On Thu, Mar 21, 2002 at 12:52:08PM +0100, Dalibor Topic wrote:

 That's just jikes complaining about a hack in AWT library code. The code 
 should work nevertheless.

And it does. Thanks.


 Compilers that work for me:
 * jikes 1.14
 * kjc 1.5b (has other serious bugs, though).
 * javac 1.3.1

Is kjc a separate project? And, by javac, do you mean Sun's javac?



On Thu, Mar 21, 2002 at 12:52:18PM +0900, Ito Kazumitsu wrote:

 kjc.jar attached to current Kaffe, that is KJC 1.5B, has serious
 bugs.  I suggest you should upgrade KJC to 2.1A or downgrade
 to 1.5A.

Do we build kjc.jar as part of Kaffe? I'm not seeing how to build it from
the source tree I've got here.


Thanks in advance, all, for further clues. As noted, I'm up and running
now, but I'd love to understand more.

-- 
Mason Loring Bliss  awake ? sleep : random()  2 ? dream : sleep;
[EMAIL PROTECTED]  https://acheron.ne.client2.attbi.com/




kaffe-current on NetBSD...

2002-03-19 Thread Mason Loring Bliss


Hey, all. I'm wondering if someone could point me in the right direction
with something.

I'm new to Java, and new to Kaffe. I'd like a newer Kaffe than 1.0.6,
so I've snagged and build the sources from the anoncvs server. I'm
having mixed results. (I'm using NetBSD 1.5.3_RC1. Also, for what it's
worth, the errors I'm describing don't happen for me with Kaffe 1.0.6.)

First, javac is not working for me. I'm not sure where it's failing, but it
just returns. I've modified /usr/local/bin/kaffe to ktrace Kaffe, and
that generates some results - libexec/Kaffe is running - but I'm not sure
where it's failing. I see nothing obvious in the ktrace output.

Second, occasional things (I haven't explored enough to properly
characterize exactly what) are failing when I try to run them - to wit, I
have, for instance, the installer for http://www.webarts.bc.ca/jOggPlayer/,
and it runs fine under Sun's jdk 1.3 (under Linux emulation) but not at
all under Kaffe, for some reason. Saying -v doesn't show me any errors.
The last line of output is:

Loading kaffe/lang/Application.class(/usr/local/share/kaffe/Klasses.jar) [compressed]

Following this, echo $? says 1, FWIW. But, running the small graphical
hello worldish demo from Just Java also returns 1 even though it runs
successfully, so I'm not sure this is significant.

Thanks in advance for clues. I realize that this problem report is pretty
sparse... I'll be happy to provide any number of details on request.

-- 
Mason Loring Bliss  awake ? sleep : random()  2 ? dream : sleep;
[EMAIL PROTECTED]  https://acheron.ne.client2.attbi.com/