I'm new

ma haibing mah@rintintin.colorado.edu
Thu Nov 12 10:42:00 GMT 1998


On 12 Nov 1998, Tom Tromey wrote:
> You can always read the source and get every detail.
>I downloaded egcs-1.1b, I could not find any file called gcj or something
alike. Did I downloaded a wrong version? Or please tell me which directory
or file to have a look.
 
> >> 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.

Sorry for the confusion. I didn't ask the question clearly. Your answer is 
what I expected.
>> 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.
>Are you saying in the short run, cygnus will only support JNI, and no
further commitment has made for C++?
By the way, will gcj support packages like java.lang.*, java.util.*,
java.awt.* etc.?
Thanks for your help.
Haibing


More information about the Java mailing list

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