Using JNI to execute a java jar from a C++ program, using g++ or eclipse

后端 未结 2 1908
孤街浪徒
孤街浪徒 2020-12-10 20:58

I\'m trying to call / execute a java jar from a C++ program.

Here are the options I\'ve found so far:



        
2条回答
  •  粉色の甜心
    2020-12-10 21:46

    I had a similar issue and realized the problem was that I was compiling, in Ubuntu, with a version of JDK that was meant for Windows and not Linux. It worked when I compiled in Cygwin instead. Alternatively, if I wanted to keep using Ubunutu, I could have tried a JDK for Linux instead.

提交回复
热议问题