• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNI for Linux using C++

 
Georgy Bolyuba
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I need some help to deal with subj. I've tried examples from java.sun.com, but they are too brief. :roll:

My general problem is that I cannot make library to run in the system without GCC. I've read (RT)FM. Nothing...

Can somebody give me a link about _real_ example of JNI using C++?

G.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're using C++ in your JNI code, then the resulting shared library will require the C++ runtime library. There's no way around that. That doesn't mean the target system needs all of GCC installed, but you will need the C++ libraries.

If you're only using C, it should be possible -- you just have to avoid using any library functions!
 
Georgy Bolyuba
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ernest, I think I've got your point.

Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!