Java GUI app compiled as native Windows executable?
Michael Koch
konqueror@gmx.de
Mon Feb 14 19:03:00 GMT 2005
On Mon, Feb 14, 2005 at 11:59:13AM +0100, Roman Kennke wrote:
> Hi there,
>
> I'd like to know if anybody has tried to compile a Java AWT application
> as native Windows executable. I have put together a simple HelloWorld
> AWT app, that compiles ok in Cygwin with
>
> gcj --main=HelloWorld -o HelloWorld.exe -mno-cygwin HelloWorld.java
>
> when I start it, it complains about a missing Gtk-related class from
> GCP. I guess GCJ is compiled without GTK Support. Is it possible to
> compile GCJ in Cygwin with GTK support? I think there is a native GTK
> port for Windows out there (e.g. Gimp for Windows uses this). Has
> anybody tried this and can make some recommendations?
I dont think someone really tried this before. You will need to install
GTK and some related stuff for cygwin and then configure gcc with
--enable-java-awt=gtk
Michael
More information about the Java
mailing list