Solved

using a java class in a C++ application

Posted on 1998-09-04
1
137 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
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
pairstar challenge 2 42
count11 challenge 6 48
XML Paring  Error - Premature end of file. 7 57
java set up 1 48
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…
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…
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 …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

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

9 Experts available now in Live!

Get 1:1 Help Now