Solved

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

Posted on 2009-03-31
1
283 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now