compiling a SWT-gui with gcj on windows

Jörg Maisenbacher joerg@maisenbachers.de
Thu Jul 24 14:11:00 GMT 2003


Hy

Mohan Embar wrote:
> This might be a bug in binutils.
> 
> Try this: get binutils-2.13.90-20021006-2.tar.gz from
> http://www.mingw.org/download.shtml and untar it
> to thisiscool-gcc/gcc-3.3/i686-pc-mingw32. If this
> works, I'll update my build.

I did this step, and wow, it compiles and finally i got an .exe file in 
my hand, which crashes right after start with the output i attached below.


Jörg

(P.S. i hope, the output is kind of readable...)

C:\g2gui>g2gui.exe
Exception in thread "main" java.lang.ExceptionInInitializerError
    at 
__ZN3org7eclipse5jface8resource14JFaceResources16getImageRegistryEv 
(C:\g2gui\jface.jar)
    at __ZN3org7eclipse5jface7dialogs6Dialog18__U3c_clinit__U3e_Ev 
(C:\g2gui\jface.jar)
    at 
__ZN3net8mldonkey5g2gui4view4pref11Preferences4openEPN3org7eclipse3swt7widgets5ShellEPNS1_4comm17CoreCommunicationE 
(C:\g2gui\g2gui.jar)
    at 
__ZN3net8mldonkey5g2gui4view5G2Gui4mainEP6JArrayIPN4java4lang6StringEE 
(C:\g2gui\g2gui.jar)
    at _main (C:\DOKUME~1\joerg\LOKALE~1\Temp\ccUHaaaa.i)
Caused by: java.util.MissingResourceException: Bundle 
org.eclipse.jface.messages not found
    at 
__ZN3org7eclipse5jface8resource14JFaceResources18__U3c_clinit__U3e_Ev 
(C:\g2gui\jface.jar)
    at 
__ZN3org7eclipse5jface8resource14JFaceResources16getImageRegistryEv 
(C:\g2gui\jface.jar)
    ...4 more

and after i created some config-files with the java-version, i got an 
other crash:

C:\g2gui>g2gui.exe
Exception in thread "main" org.eclipse.swt.SWTException: Unsupported or 
unrecognized format
    at __GLOBAL__I_org_eclipse_swt_internal_SWTMessages.propertiesn47Ojb 
(D:\Program 
Files\thisiscool-gcc\swt\win32\scripts\org\eclipse\swt\internal\SWTMessages.properties)
    at __GLOBAL__I_org_eclipse_swt_internal_SWTMessages.propertiesn47Ojb 
(D:\Program 
Files\thisiscool-gcc\swt\win32\scripts\org\eclipse\swt\internal\SWTMessages.properties)
    at __GLOBAL__I_org_eclipse_swt_internal_SWTMessages.propertiesn47Ojb 
(D:\Program 
Files\thisiscool-gcc\swt\win32\scripts\org\eclipse\swt\internal\SWTMessages.properties)
    at __GLOBAL__I_org_eclipse_swt_internal_SWTMessages.propertiesn47Ojb 
(D:\Program 
Files\thisiscool-gcc\swt\win32\scripts\org\eclipse\swt\internal\SWTMessages.properties)
    at __GLOBAL__I_org_eclipse_swt_internal_SWTMessages.propertiesn47Ojb 
(D:\Program 
Files\thisiscool-gcc\swt\win32\scripts\org\eclipse\swt\internal\SWTMessages.properties)
    at __GLOBAL__I_org_eclipse_swt_internal_SWTMessages.propertiesn47Ojb 
(D:\Program 
Files\thisiscool-gcc\swt\win32\scripts\org\eclipse\swt\internal\SWTMessages.properties)
    at __GLOBAL__I_org_eclipse_swt_internal_SWTMessages.propertiesn47Ojb 
(D:\Program 
Files\thisiscool-gcc\swt\win32\scripts\org\eclipse\swt\internal\SWTMessages.properties)
    at __GLOBAL__I_org_eclipse_swt_internal_SWTMessages.propertiesn47Ojb 
(D:\Program 
Files\thisiscool-gcc\swt\win32\scripts\org\eclipse\swt\internal\SWTMessages.properties)
    at __GLOBAL__I_org_eclipse_swt_internal_SWTMessages.propertiesn47Ojb 
(D:\Program 
Files\thisiscool-gcc\swt\win32\scripts\org\eclipse\swt\internal\SWTMessages.properties)
    at 
__ZN3net8mldonkey5g2gui4view7MainTab14createContentsEPN3org7eclipse3swt7widgets5ShellE 
(C:\g2gui\g2gui.jar)
    at 
__ZN3net8mldonkey5g2gui4view7MainTabC1EPNS1_4comm17CoreCommunicationEPN3org7eclipse3swt7widgets5ShellE 
(C:\g2gui\g2gui.jar)
    at 
__ZN3net8mldonkey5g2gui4view5G2Gui4mainEP6JArrayIPN4java4lang6StringEE 
(C:\g2gui\g2gui.jar)
    at _main (C:\DOKUME~1\joerg\LOKALE~1\Temp\ccknaaaa.i)

which seems to be a problem with some hardcoded path's from you, or not?



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



More information about the Java mailing list