Re: which class can i use?

2001-11-11 Thread Dorothy Wu



Thanks for Chris Gray's answering.

I have read some documents on kaffe web site, 
I think I have had some ideas about my project.

And I want to reference some examples of kaffe.
Where can I find java(kaffe) application group?

Thanks,
Dorothy Wu

- Original Message - 
From: "Chris Gray" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 09, 2001 10:56 AM
Subject: Re: which class can i use?


> 
> On Thu, 8 Nov 2001, Dorothy Wu wrote:
> 
> > 
> > hello, 
> > I am a newbie in Java field and planning a java project by kaffe.
> > It is an application running in linux.
> > Now I am a question about programming,
> > Can I use xt lib?
> > Is there any "class" implementing x function?
> 
> You mean xt as in X Toolkit?
> 
> The normal way to do any kind of graphical programming in Java is to
> use the Abstract Windowing Toolkit classes in package java.awt.  Code
> you develop that way will also run on MS Windows and a lot of other
> weird stuff, not just X11.
> 
> If you really want to do low-level X programming then you'll need to
> build some kind of bridge using the Java Native Interface (JNI).  Not
> that hard really, but I very much doubt you really want to do that.
> 
> -- 
> 
>   Chris Gray[EMAIL PROTECTED][EMAIL PROTECTED]
> 




build kaffe-1.0.6 error

2001-11-11 Thread Dorothy Wu
ldld... (cached) no
checking for dld_link in -ldld... (cached) no
checking for dlerror... (cached) yes
checking for _ prefix in compiled symbols... (cached) no
checking for malloc.h... (cached) yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for stdio.h... (cached) yes
checking for ctype.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for dl.h... (cached) no
checking for dld.h... (cached) no
checking for string.h... (cached) yes
checking for strchr... (cached) yes
checking for strrchr... (cached) yes
checking for strcmp... (cached) yes
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged

And my os is redhat 7.0.
Is there anything wrong?

Thanks a lot

Dorothy Wu




which class can i use?

2001-11-07 Thread Dorothy Wu


hello, 
I am a newbie in Java field and planning a java project by kaffe.
It is an application running in linux.
Now I am a question about programming,
Can I use xt lib?
Is there any "class" implementing x function?
Or can I use the other library(.so) which compiled by c/c++ compiler?
I am at a loss.

Thanks for any help! 

Dorothy Wu




textValueChanged never come

2001-11-15 Thread Dorothy Wu


hello!

Could u help me check the below code?
i run the below code by kaffe.
When I write in ta(TextArea), nothing print out( System.out.println(evt) ).
it seems textValueChanged event never come.
Can't kaffe(1.0.5-6) capture this event?
How should I modify it?

Thanks!
Dorothy Wu

/---
import java.awt.*;
import java.awt.event.*;

class Main extends Frame implements TextListener {
Main() {
super("TextEvent Example");
TextArea ta = new TextArea();

ta.addTextListener(this);

add(BorderLayout.CENTER, ta);
pack();
show();
}

public void textValueChanged(TextEvent evt) {
System.out.println(evt);
}

public static void main(String args[]) {
new Main();
}
}

-/




error when system.load()

2001-11-30 Thread Dorothy Wu



hi,
I met a problem when I use JNI.
 
I wrote two shared 
libraries (c/c++).
Then I used them in my c/c++ 
application.
Everything is Ok, my c/c++ application can use 
these libraries.
 
But when I use it in kaffe by JNI,
Only one library can load, another can never loaded 
by System.load().
Error is:
"UnsatisfiedLinkError: file not 
found."
 
I have checked the path, everything is 
OK.
The difference between these two libraries is,  the 
latter do not link any library.
The link command is:
"ld -shared --whole-archive x.o y.o -o 
libxy.so"
I do not think it is the reason why I can not load 
it.
 
But why, it is a bug of System.load()?
 
Thanks!
 
Stock Wu