Solved

using a java class in a C++ application

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
V.simple question about Android packages and libraries 1 46
runtime exception 2 67
glassfish admin console 1 53
Java Inheritance super keyword use 8 74
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

752 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