Connecting Tech Pros Worldwide Help | Site Map

Using C++ to wrap Java

  #1  
Old July 22nd, 2005, 11:19 AM
cppaddict
Guest
 
Posts: n/a
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, 11:19 AM
Karthik
Guest
 
Posts: n/a

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, 11:20 AM
Daniel Sjöblom
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vector and SWIG java problem Jazi answers 0 June 8th, 2007 08:58 PM
Legacy Code interface (No good answer): Java JNI better than .NET interoperability?? Sai Kit Tong answers 3 November 15th, 2005 11:26 AM
Is anything easier to do in java than in lisp? RobertMaas@YahooGroups.Com answers 73 July 18th, 2005 12:25 AM
Anyone know about ActiveX in Java? S C A answers 3 July 17th, 2005 11:28 PM