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 a SWT-gui with gcj on windows


Jörg Maisenbacher wrote:
Mohan Embar wrote:
 >>C:\g2gui>g2gui.exe
 >>Exception in thread "main" org.eclipse.swt.SWTException: Unsupported or
 >>unrecognized format
 >
 > See this thread:
 >
 > http://gcc.gnu.org/ml/java/2003-07/msg00260.html
 >
 > Let me know if it helps.

Hy, did it on my own... read how i did it:


I just created a package org.eclipse.swt.internal.image inside my jar-file with the .class file from the quellcode from the link above. recompiled this jar file and linked everything together:
Hey, it works and after strip & upx the (static) file is not too big in size.


I just wanted to notice, that this gcj is really great work. As it might help java to be used more often as language, as you now can avoid the JRE without loosing platform-indepency. OK you have to recompile on every platform, but without changing the code, this is very "platform independent" for me ;-)

thank you all

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]