How can I deploy a mixed C++/Java (JNI) application?

前端 未结 3 394
执笔经年
执笔经年 2021-01-14 04:50

tl;dr: C++ plugin needs to call Java .jar library. How to deploy this to users without too much headache?

I\'m writing a Qt plugin for a Qt applica

3条回答
  •  走了就别回头了
    2021-01-14 05:25

    Since I can't figure out an equivalent to /DELAYLOAD on Linux (asked here: How can I make lazy/delay loading work in Linux?), I'm stuck using dlopen(). It's not as bad as I thought it would be -- I can use the technique described here: Alternatives to dlsym() and dlopen() in C++ . In fact, it seems like the jni.h header was designed for this approach. Probably what I should have done in the first place, on Windows too.

提交回复
热议问题