I'm new

Tom Tromey tromey@cygnus.com
Thu Nov 12 08:58:00 GMT 1998


>>>>> ">" == ma haibing <mah@rintintin.colorado.edu> writes:

>> 1. Can somebody point me some more reference/paper/document/code
>> other than several papers posted on the soureware web page? I want
>> to learn more detail about this project.

There might be more info on Per's web page; I'm not sure.
You can always read the source and get every detail.
>> 2. What's the mechanism of incorporating existing C/C++ code into
>> the gcj library so I can program in Java instead of C/C++? From my
>> point of view, a class called java.awt.Button may seem, to gcj,
>> same as gtk.widget.Window or Qt.widget.PushButton. Because these
>> class can all be viewed as "native".

I'm not sure I really understand the question.
You can connect C++ code to the runtime using native methods. There
is a paper on this on the web site ("Writing native Java methods in
natural C++" discusses interaction between Java and C++").
For C code, we will probably eventually support JNI. Or you can write
C++ methods that then call the C code.
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /