This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: compiling a SWT-gui with gcj on windows
- From: "Simon Rutishauser" <simon dot rutishauser at gmx dot ch>
- To: java at gcc dot gnu dot org
- Date: Thu, 24 Jul 2003 13:52:38 +0200
- Subject: Re: compiling a SWT-gui with gcj on windows
- References: <3F1F0209.3060703@maisenbachers.de>
Well,
GCJ (especially on windows) is not exactly user-friendly and completely
working. I'd suggest you have a look at the java-devel mailinglist (which
is also accessible through gmane: www.gmane.org gmane.comp.gcc.java.devel)
the people there are really competent and friendly even though lots of
questions are off-topic or so ;-)
Peschmä
Am Wed, 23 Jul 2003 23:45:45 +0200 schrieb Jörg Maisenbacher:
> Hy,
>
> We are working on a new gui for mldonkey (you know, the p2p-app for
> linux). We do this in Java and SWT, to avoid the peoples fear of slow
> Java-software, we want to complile it with gcj.
>
> Here is, where my problem starts. I only get errors when compiling the
> libraries we use. (boot.jar jface.jar runtime.jar swt.jar trove.jar)
>
> As i'm not very experienced with gcc and its command-line switches, i
> don't know wether it is my fault, or a bug in the windows-port. Perhaps
> you can help me (or at least give me a hint) how to compile a more
> complex piece (which means quite a lot of classes and external .jar as
> libs) of software using gcj.
>
> I hope you can help me and our project.
>
> greets
> Joerg Maisenbacher
>
>
> PS, i put an example here: (using the gcc 3.4 package from
> http://www.thisiscool.com/gcc33_mingw.htm )
> for example:
> > gcj -fjni --CLASSPATH=%CP% -c jface.jar
>
> (where %CP% =
> xmlParserAPIs.jar;
> xercesImpl.jar; boot.jar;
> runtime.jar; swt.jar; jface.jar)
>
> results in:
>
> ,---------
> (..lots of lines go here...)
>
> org/eclipse/jface/window/ApplicationWindow.java:443: warning:
> unreachable bytecode from 313 to before 316
> org/eclipse/jface/window/ApplicationWindow.java:422: warning:
> unreachable bytecode from 477 to before 480
> C:\DOKUME~1\joerg\LOKALE~1\Temp/ccg9aaaa.s: Assembler messages:
> C:\DOKUME~1\joerg\LOKALE~1\Temp/ccg9aaaa.s:290763: Error: symbol
> `__GLOBAL__I__ZN3org7eclipse5jface6action19AbstractGroupMarkerC1Ev' is
> already defined
>
> `---------