[5661] in java-interest

home help back first fref pref prev next nref lref last post

FW: interfacing C++ with Java

daemon@ATHENA.MIT.EDU (Craig Perras)
Wed Feb 21 14:54:37 1996

From: Craig Perras <CraigP@saros.com>
To: java interest <java-interest@java.sun.com>
Date: Wed, 21 Feb 1996 10:11:00 -0800


I'm investigating the possibility of using Java as a front-end to a C++ 
application.  There are several reasons I want to do this, but primarily i 
want to use C++ for greater efficiency and for some C++ libraries.  I worry 
about efficiency because (to my knowledge) Java is an interpreted language, 
and my program will involve a lot of 3-D graphics.

I know Java supports C function calls, but does it support C++ function 
calls?  I expect to use C++ features, such as classes and operator 
overloading, so I don't think using the EXTERN "C" keyword to turn off 
name-mangling will help.

I want to somehow compile my C++ source and then interface it with a Java 
application so I can use it as a front-end for the WWW.  Does anyone know if 
this is possible? I want Java for its hardware-independence and built-in 
networking capabilities,

Perhaps my app would work best if I just have the C++ program (the back-end) 
running on a WWW server, and have the client machines running the Java 
application locally.  Then the C++ program could interface with the Java app 
(not sure if it's possible) and update/sync state information.  The Java app 
would then simply update the 3-D graphics on the client and send the 
input/state info back to the server.  If this is feasible, it would take a 
lot of stress off my server.

Is my understanding correct?  Is this how Java was meant to be utilized? 
 Thanks for the help!
 --craig
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post