GCJ Windows and SWT
Erik Poupaert
erik.poupaert@freestyler-toolkit.org
Mon Sep 22 16:04:00 GMT 2003
> C:\GCJ\SWT2.1.1\src>gcj -c org\eclipse\swt\custom\*.java
> ./org/eclipse/swt/custom/DisplayRenderer.java:66: error: Type `LineCache'
> not fo
> und in the declaration of the local variable `lineCache'.
> LineCache lineCache = parent.internalGetLineCache();
>
That's one of the changes you need to make to SWT, before it compiles properly with
GCJ.:
-------------------------
DisplayRenderer.java 66
-------------------------
Take out line:
//X LineCache lineCache = parent.internalGetLineCache();
The next one you may run into, could be:
-------------------------
TableCursor.java 407-418
-------------------------
Change the return type for the method:
//X void traverse(Event event) {
boolean traverse(Event event) {
switch (event.detail) {
case SWT.TRAVERSE_ARROW_NEXT :
case SWT.TRAVERSE_ARROW_PREVIOUS :
case SWT.TRAVERSE_RETURN :
event.doit = false;
return true; //X
}
event.doit = true;
return true; //X
}
Depending on how you compile the jni support, you may have to make additional
changes.
More information about the Java
mailing list