Solved

using a java class in a C++ application

Posted on 1998-09-04
1
143 Views
Last Modified: 2012-05-04
Hi,
I have created a class in java and now I'd like to use it in a c++ application. Do u know how to do this stuff?
Thanks
0
Comment
Question by:stef3
[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 1

Accepted Solution

by:
arbitrary earned 50 total points
ID: 1223614
you have a .class file that you  want to execute from a C++ enviroment ,
There isn't any simple solution.
you can either make this class of yours an activeX component
using j++, or you can enhace your C++ code with interpretation
capabilities,as following:
you install JDK ver 1.1.5 or later , with the source code demos
you open the directory JRE under JDK-Root\Demos
and there you can find the source code for the JRE interpreter.
it's not so easy to do this with the JRE source code , but it will  enable you to run your .class file from your C++ application.


0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
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.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

630 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