This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
gcj to assist in porting java applet to activex control?
- To: java at gcc dot gnu dot org
- Subject: gcj to assist in porting java applet to activex control?
- From: Adam Megacz <gcj at lists dot megacz dot com>
- Date: 22 Oct 2001 15:48:09 -0700
- Organization: Myself
Hi. I've got a rather huge Java Applet that I'd like to turn into a
win32 ActiveX control.
It barely uses anything in the java.* packages -- just a tiny bit of
AWT (which I'm quite willing to rewrite in C to make native Win32
calls), and some standard HTTP GETs over a TCP socket (nothing
fancy). I'm willing to put a pretty considerable amount of effort into
this.
Is this feasible? My first guess at how to do this is to:
1) run my .class files through gcj, targeted to MinGW
2) rewrite the graphics stuff in C, and have the Java code call it
using JNI/CNI
3) write C code to provide the ActiveX/COM call-ins
4) link together the results of 1, 2, 3 into a single .DLL
Is it possible to create ActiveX (basically COM, AFAIK) DLL's using
gcj/MinGW? If not, would adding this functionality to gcj be a
gargantuan undertaking?
Thanks for any direction you can give me!
- a