Using C++ to wrap Java

C

cppaddict

Hi,

I'm writing a windows application in C++. However, much of the
application's logic is already written in Java. I'd like to be able
to make use of that code from within my C++ code. How can this be
accomplished? I'd appreciated any thoughts or good internet reference
material on the subject.

Thanks,
cpp
 
K

Karthik

cppaddict said:
Hi,

I'm writing a windows application in C++. However, much of the
application's logic is already written in Java. I'd like to be able
to make use of that code from within my C++ code. How can this be
accomplished? I'd appreciated any thoughts or good internet reference
material on the subject.

Thanks,
cpp
Check out for JNI.

http://java.sun.com/j2se/1.4.2/docs/guide/jni/index.html .

This is out of topic of current newsgroup. Hence setting follow-up to
the relavant one (hopefully ;) - comp.lang.java.programmer .

HTH
 
?

=?ISO-8859-1?Q?Daniel_Sj=F6blom?=

cppaddict said:
Hi,

I'm writing a windows application in C++. However, much of the
application's logic is already written in Java. I'd like to be able
to make use of that code from within my C++ code. How can this be
accomplished? I'd appreciated any thoughts or good internet reference
material on the subject.

This is off-topic here. What you want is the JNI (java native
interface.) First visit java.sun.com, then post in
comp.lang.java.programmer if you need more help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top