How to implement a java interface in c++?
Michael Koch
konqueror@gmx.de
Thu May 18 15:10:00 GMT 2006
On Thu, May 18, 2006 at 09:30:26AM -0500, tsuraan wrote:
> >I doubt it. In any case, In any case there's a simple way that works:
> >write the headers in as .java files and the inplementation in C++.
>> Yeah, it does work. It looks strange to essentially have header files
> with a .java extension, but I guess I'll get used to it :)
No. The *.java file is a real java file. The *.h file is generated from
the *.java file. And the *.cpp contains the implementations of the
methods. All three are needed.
Michael
--
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
Join the community at http://planet.classpath.org/
More information about the Java
mailing list