Connecting Tech Pros Worldwide Help | Site Map

Using C++ to wrap Java

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 22nd, 2005, 10:19 AM
cppaddict
Guest
 
Posts: n/a
Default Using C++ to wrap Java

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

  #2  
Old July 22nd, 2005, 10:19 AM
Karthik
Guest
 
Posts: n/a
Default 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.
  #3  
Old July 22nd, 2005, 10:20 AM
Daniel Sjöblom
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.