standalone jface with gcj

Norbert Frese postfach@nfrese.net
Wed Nov 19 13:59:00 GMT 2003


For those who play with swt/jface:

I have hacked jface to get rid of the platform dependencies (boot.jar
and runtime.jar).

The "jface-standalone.jar"/jface.o contains a minimalistic 
"org.eclipse.core.runtime.Platform" and only those classes from
runtime.jar which are required by jface (& some little changes to the
jface-sources to make them compile with gcj).

The package contains some examples from developerworks and compiles with
linux/gcj (because of the swt binaries included). The
jface-standalone.jar can also be used in "non gcj" java applications.

(The Makefile is not pretty and the way i put the --resource stuff
together is odd*), but it works; i'm using "gcj-jar-3.3.1" as
jar-packaging tool - maybe you have to change this)

download:
http://www.scheinwelt.at/~norbertf/gcj/swtfiles/

if anyone finds bugs or succeeds in compiling this on win32 - please
tell me.

(i have seen that there was a previous attempt to compile jface on gcj:
http://gcc.gnu.org/ml/java/2003-05/msg00014.html)

norbert

*) i don't know why, but compiling the resources with
"gcj -c jface_orig_res_imgs.zip -o jface-resorces.o"
from a zip-file does not work. it does not complain, but the
"jface-resources.o" is very small and does not contain any
images/property-fieles.
(maybe because i'm using the old gcj 3.3.1)




More information about the Java mailing list