Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java and GPO 11 71
Image decoding from Camera 3 72
Groovy:unable to resolve class error 2 70
java 8 lambda expresssions exception handling 3 75
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
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.

895 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

14 Experts available now in Live!

Get 1:1 Help Now