This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling SWT with gcj/linux


Gerard Naude wrote:
Now when i try to compile swt.jar (gcj -fjni -shared -o swt.so swt.jar) i get these errors:

org/eclipse/swt/graphics/Color.java: In class `org.eclipse.swt.graphics.Color':
(...)
bailing out


try to add swt-pi.jar to your classpath when compiling:

export CLASSPATH=swt-pi.jar:swt.jar
gcj -fjni -shared -o swt.so swt.jar
gcj -fjni -shared -o swt-pi.so swt-pi.jar

should do it (at least it does for me)

joerg

--
Jörg Maisenbacher
   "There are only 10 types of people in the world:
    Those who understand binary and those who don't."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]