?
Solved

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

Posted on 2009-03-31
1
Medium Priority
?
292 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 19

Accepted Solution

by:
alb66 earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
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 NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
Suggested Courses
Course of the Month9 days, 9 hours left to enroll

762 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