Connecting Tech Pros Worldwide Help | Site Map

Using C++ to wrap Java

cppaddict
Guest
 
Posts: n/a
#1: Jul 22 '05
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
Karthik
Guest
 
Posts: n/a
#2: Jul 22 '05

re: Using C++ to wrap Java


cppaddict wrote:
[color=blue]
> 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[/color]
Check out for JNI.

http://java.sun.com/j2se/1.4.2/docs/...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

--
Karthik
Humans please 'removeme_' for my real email.
Daniel Sjöblom
Guest
 
Posts: n/a
#3: Jul 22 '05

re: Using C++ to wrap Java


cppaddict wrote:[color=blue]
> 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.[/color]

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.
--
Daniel Sjöblom
Remove _NOSPAM to reply by mail
Closed Thread