Sri Harsha Chilakapati
Sri Harsha Chilakapati

Reputation: 11950

Calling Java Swing from c++

I had made a game engine in Java (based on Swing) and I wan't to translate it to c++ and to ease the process, I want to know how to call Java api from the c++.

Basically what I wan't to make is using a wrapper that wraps the java library and makes it available to use from c++.

Thanks.

Upvotes: 1

Views: 1490

Answers (1)

Adnan Akbar
Adnan Akbar

Reputation: 718

Use JNI. Try to keep the calls to primitive data types. It requires coversions when calling java from c++ and back. Following could be a good help.

http://www.steveolyo.com/JNI/JNI.html

Upvotes: 2

Related Questions