This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Invoking GIJ from SunJDK Swing app?
- From: "Mike Purdy" <purdymi at binghamtonschools dot org>
- To: <java at gcc dot gnu dot org>
- Date: Sun, 17 Sep 2006 13:47:42 -0400
- Subject: Invoking GIJ from SunJDK Swing app?
I'm writing a processing class that will be used in an existing Swing/SunJDK based application on Mac OSX and Linux. I would like to compile my class to native with gcj and use gij to access it (for speed and AOT optimization purposes).
My thought is that I could write a c++ library that would be called by the Swing application via JNI. This library could then invoke the gij runtime via CNI and load the natively compiled library. The c++ library would act as a bridge between the two distinct java runtimes. I realize that I would have the overhead of two runtimes, but I still believe the speed payoff could be worth it.
Does anyone have experience with invoking gij via CNI or could anyone comment on the prudence of my thinking as I map out this possible process?
Mike