Writing C++ and java in the same game project or extension is it possible

i and my team at DigitalGameWorld Are mostly into c++ and java so can we split programming languages and make some parts java and some parts C++

You can easily have two extensions - one in C++, one in Java.
UPD: well, with Java not so easy.

1 Like

Thank you

Yeah but Java is for Android extensions only isn’t it? C and C++ is the main language for native extensions. Then you have Java for Android, Objective C for iOS and OSX and finally also Javascript for HTML5.

Yes. In Defold it’s only Android that has support for JNI, so java support for native extensions is only support on Android.

Can’t you bundle java runtime as a lib?

1 Like

Sure. But currently, the server won’t build java code for any other platform than Android.

Yeah. but you can submit just jar files I presume. So in theory it’s possible.