A tool to create a C ++ shell on top of a java class

From what I understand, SWIG should wrap C ++ / C so that it appears in Java, and javah - implement certain java functions in C ++ (aka native functions).
Is there a tool that can create a C ++ wrapper over a java class to the caller. this C ++ shell does not need to worry about java, for example, Input Java

  class hw {  
    public  void hi() {  
      System.out.println("Hello World");  
    }  
  }  

The tools output hw.hh files (and some. C ++), which can be used as:

hw * h = new hw (/ * JEnv * / env);
    H-> hello ();

Is there an available tool that can do this?

+5
source share
2 answers

: .

  • JNI , Java-.
  • , JNI , .
  • JACE - . JACE - . 2008 ; , .
  • Jun++ ion - . . Java, ++ Java. . , .
+4

All Articles