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" == 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


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