Is gcj from gcc 3.3 required to build libswt.so for gcj - SWT integration?
chris burdess
dog@bluezoo.org
Fri Apr 18 08:07:00 GMT 2003
Kevin B. Hendricks wrote:
> I seem to be unable to compile just one file:
>> org.eclipse.swt.custom.StyledText.java
>>> All of the others compile fine.
>>> No matter what I try I end up with this error message:
>> gcj -O2 -fPIC -c org/eclipse/swt/custom/StyledText.java -o
> org/eclipse/swt/custom/StyledText.o
> ./org/eclipse/swt/custom/StyledText.java:77: Class
> `org.eclipse.swt.custom.StyledText' already defined in
> org/eclipse/swt/custom/StyledText.java:77.
> public class StyledText extends Canvas {
> ^
> ./org/eclipse/swt/custom/StyledText.java:157: confused by earlier errors,
> bailing out
> make: *** [org/eclipse/swt/custom/StyledText.o] Error 1
>>> But StyledText class is only defined once in that file (and it is not
> defined any place else in the swt java files.
i also have this problem with gcj on powerpc linux. in my case it was
worked around by:
1. *not* specifying the source directory with the -classpath option if
the source file is in the list of files to be compiled, and
2. using fully-qualified class names in all imports for packages to be
compiled (packages in existing jarfiles are fine).
--
chris burdess
More information about the Java
mailing list