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
JavaBot
JavaBot6mo ago
This post has been reserved for your question.
Hey @eat_my_short_123! Please use /close or the Close Post button 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
0x150
0x1506mo ago
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
coolsigma103
coolsigma103OP6mo ago
thank you
JavaBot
JavaBot6mo ago
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.
JavaBot
JavaBot6mo ago
Post Closed
This post has been closed by <@1352291760360914964>.

Did you find this page helpful?