This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Java GUI app compiled as native Windows executable?
- From: Michael Koch <konqueror at gmx dot de>
- To: Roman Kennke <roman at ontographics dot com>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 14 Feb 2005 11:19:15 -0600
- Subject: Re: Java GUI app compiled as native Windows executable?
- References: <1108378753.4090.14.camel@localhost.localdomain>
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