This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: compile or not compile
- To: Damien Morel <Damien dot Morel at emi dot u-bordeaux dot fr>
- Subject: Re: compile or not compile
- From: Tom Tromey <tromey at cygnus dot com>
- Date: Thu, 13 Jan 2000 10:16:14 -0800 (PST)
- Cc: java-discuss at sourceware dot cygnus dot com
- References: <387DC824.433CD660@emi.u-bordeaux.fr>
>>>>> "Damien" == Damien Morel <Damien.Morel@emi.u-bordeaux.fr> writes:
Damien> i would like to know if it is possible to have a part of my
Damien> java application compiled in byte code and an other part in
Damien> native code.
Yes, you can, if you're on a platform where the interpreter is enabled
(at the moment, only x86).
Damien> The problem is that i must optimize a program i didn't make,
Damien> this is a program that uses AWT and makes heavy sound
Damien> processing (entirely written in java).
Damien> Can i interface byte-compiled and native java code ?
In your case it won't work. AWT is going to have native methods,
which presumably work via JNI. We currently don't have JNI (though we
hope to in the not-to-distant future).
Tom