how to run java belong with cpp
im making a game engine in cpp but the scripting and editor will be written in java, whats the best way to link those 2 thing
5 Replies
⌛ This post has been reserved for your question.
Hey @eat_my_short_123! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
you might be able to use the invocation api to make a jvm instance from cpp
if you want the java code to have access to your cpp code, you can bind native cpp functions to java ones with jni or just make a ffi link between java and native code
https://docs.oracle.com/en/java/javase/21/docs/specs/jni/invocation.html
thank you
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
Post Closed
This post has been closed by <@1352291760360914964>.