How to embed V8 in a Java application?

后端 未结 3 359
遇见更好的自我
遇见更好的自我 2021-01-30 22:14

I\'m looking for a solution for embedding the Google JavaScript engine V8 in my Java application.

Have you got some solutions?

3条回答
  •  醉酒成梦
    2021-01-30 22:56

    There's not really any straightforward way you can do it, but, I would suggest Rhino or the JNI. The former is easier, but, not v8, the latter is hard and finicky, but, v8.

    Or, you can use a seperate v8 process, and talk with it with Java.

提交回复
热议问题