Jump to content
  • Advertisement
Sign in to follow this  
sdaq

How do I get my Java GUI to use a C++ library?

This topic is 2480 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi all,

looking for ideas on how to do this... we have a Java GUI that needs to be able to make some function calls to a C++ library. Any help would be appreciated!

Thanks.

Share this post


Link to post
Share on other sites
Advertisement
The low-level route is to write a JNI wrapper for your library, though this is a lot of work.

Somewhat simpler is to generate Java bindings using a generator like SWIG.

Another option is to wrap your library up in a small executable process, and communicate between the Java and C++ processes via Sockets/Pipes/etc. (sort of like Chrome's multi-process model).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!