Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2010
    Rep Power

    Default Calling Java from C++ code


    I want to compile legacy source code in C++ with Java. I would like to call java from C++. Can you point me to any documentation or know how? I will be using the java 1.6.x standard edition.


  2. #2
    couling is offline Member
    Join Date
    Nov 2010
    Rep Power


    You're looking for the Java Native Interface (JNI).

    This works both ways. It lets you wrap c code in Java classes and lets you invoke the JVM to let you use Java code in a c program.

    Hope this helps.
    ----Signature ----
    Please use [CODE] tags and indent correctly. It really helps when reading your code.

Similar Threads

  1. Replies: 9
    Last Post: 12-21-2010, 02:37 PM
  2. Repaint calling Statement Doesn't Work in my code ?
    By nitin_daviet88 in forum CLDC and MIDP
    Replies: 2
    Last Post: 07-24-2010, 03:09 PM
  3. Replies: 1
    Last Post: 03-04-2010, 11:19 AM
  4. calling c code from java
    By sara12345 in forum New To Java
    Replies: 14
    Last Post: 12-27-2009, 06:12 PM
  5. All JSP expert / Is there JSP code for calling & sending messages? please help me
    By java student in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 12-02-2008, 10:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts