The Artima Developer Community
Sponsored Link

Java Answers Forum
java c++ communication

2 replies on 1 page. Most recent reply: Jul 25, 2002 9:33 AM by James.Z.Dong

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
James.Z.Dong

Posts: 2
Nickname: jzd
Registered: Jul, 2002

java c++ communication Posted: Jul 24, 2002 5:07 PM
Reply to this message Reply
Advertisement
hiya,anyone knows how a java program can communicate with a c++ program in unix?


Don Hill

Posts: 70
Nickname: ssswdon
Registered: Jul, 2002

Re: java c++ communication Posted: Jul 25, 2002 7:25 AM
Reply to this message Reply
> hiya,anyone knows how a java program can communicate
> with a c++ program in unix?

James, How do you mean communicate ? There is native calls that can be made into the c++ lib, you will need to do a loadlibrary() first then make the calls, there is some prototyping that needs to take place also.

Here is a simple example

http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/step1.html

James.Z.Dong

Posts: 2
Nickname: jzd
Registered: Jul, 2002

Re: java c++ communication Posted: Jul 25, 2002 9:33 AM
Reply to this message Reply
that means the java and c++ programs sending string to each other as input and putput.
can i use runtime and getinputstream/getoutputstream?

Flat View: This topic has 2 replies on 1 page
Topic: Applet does not work.Why??? Previous Topic   Next Topic Topic: how to run applets in browsers

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use