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: Creating a native java application using swt and Linux


Eric Harlow wrote:
I'm compiling swt using gcj - some modules with -fjni
and some not depending on if they have native calls.

It would probably be better to compile all of swt with -fjni. Otherwise, you might miss a class that calls a non-native method that gets inline - and calls a native. For example.

I've gotten swt to compile and turn into a library. What I'm getting when I link in "HelloWorld" is

./libswt.so: undefined reference to
`org::eclipse::swt::internal::gtk::OS::gtk_scale_set_draw_value(int,
bool)'

It's looking for a CNI method, so *somwthing* that should have been compiled with -fjni wasn't. -- --Per Bothner per@bothner.com http://per.bothner.com/



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