Solved

How do I pack java code inside a DLL to use with C++

Posted on 2009-03-31
1
286 Views
Last Modified: 2013-12-14
Does anybody know how I can put java code inside a dll file and after that call that code inside a C++ program?

Do I put the java code inside a COM object that I put inside C++?

And if that is true can I call that object from inside a C++ program to use the java code in the dll?

Or do I use another approach?

Is it even possible?
0
Comment
Question by:Choklander
1 Comment
 
LVL 19

Accepted Solution

by:
alb66 earned 500 total points
ID: 24026967
In order to call Java code from C++ you can use the Invocation Interface (a part of the Java Native Interface [JNI] ).
For greater details look at http://java.sun.com/docs/books/jni/html/invoke.html#11202
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question