compiling a SWT-gui with gcj on windows

Tom Tromey tromey@redhat.com
Sat Aug 9 19:13:00 GMT 2003


>>>>> "Jörg" == Jörg Maisenbacher <joerg@maisenbachers.de> writes:

Jörg> gcj -c --resource=org/eclipse/swt/internal/SWTMessages.properties \
Jörg>      -o SWTMessages.o org/eclipse/swt/internal/SWTMessages.properties

Jörg> i tried to change this for all the property-files i have. They compile
Jörg> fine to .o. And i have no error at linking-stage. But at runtime i get
Jörg> ----
Jörg> java.util.MissingResourceException: Bundle org.eclipse.jface.messages
Jörg> not found

Usually you run into problems here if you pass the wrong argument to
--resource.

The argument to --resource is *not* a file name -- it is the name of
the resource that will be looked for at runtime.  I've made the
mistake before of using an actual file name here, e.g. if you use the
magic make variables in a VPATH build, you'll get the wrong value...

If that isn't the problem, you can always debug...

Tom



More information about the Java mailing list