Using C++ to wrap Java

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cppaddict

    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
  • Karthik

    #2
    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.

    Comment

    • Daniel Sjöblom

      #3
      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

      Comment

      Working...