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


Tom Tromey wrote:
"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> 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.

And how do i know, which name is used at runtime? i looked at the Jface-sources, there is a call for
bundle=ResourceBundle.getBundle("org.eclipse.jface.messages");
it don't work if i do:
gcj --resource=org.eclipse.jface.messages (...)
gcj --resource=org.eclipse.jface.messages.properties (...)
gcj --resource=org/eclipse/jface/messages (...)
gcj --resource=org/eclipse/jface/messages.properties (...)
gcj --resource=messages (...)
gcj --resource=messages.properties (...)


what the hell am i doing wrong????

--
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]