• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNI LoadLibrary - unresolved references.

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a bunch of shared libraries on Linux. The one I need to use via the JNI has a couple of external refs which I know I'll never use but I'm getting Unsatisfied Link error when load the library. Previous posts have stated JNI is a bit strict on this. I tracked the symbols down eventually and I loaded the extra library but this has unresolved refs too and I can see a whole chain of these libraries having to be loaded which is a pain in the %^&%*.

So is there a way to persuade JNI not to be so pernickity about it?
 
Sheriff
Posts: 22784
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And if JNI ignored the missing reference, and tried to call a function from that reference, what then? You'd get a lot more, and nastier, runtime error messages. Your entire JVM might even crash!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic