The Artima Developer Community
Sponsored Link

Java Answers Forum
Run a C program from Java

2 replies on 1 page. Most recent reply: May 10, 2004 3:47 AM by Sushil Srivastava

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
Vickie Martin

Posts: 2
Nickname: jasmine14
Registered: Apr, 2004

Run a C program from Java Posted: Apr 14, 2004 4:09 PM
Reply to this message Reply
Advertisement
I need to figure out how to run a C++ program from inside my Java application. The C++ program has one text argument. Thanks!


Alex S

Posts: 27
Nickname: andu
Registered: Mar, 2003

Re: Run a C program from Java Posted: Apr 14, 2004 11:59 PM
Reply to this message Reply
I guess you want to run an exe file.

Use one of the
Runtime.exec()
methods.

Sushil Srivastava

Posts: 6
Nickname: sushilsri
Registered: May, 2004

Re: Run a C program from Java Posted: May 10, 2004 3:47 AM
Reply to this message Reply
JNI API is probably what you need to accomplish this

Flat View: This topic has 2 replies on 1 page
Topic: reallocation of memory in Java Previous Topic   Next Topic Topic: execute Unix commands

Sponsored Links



Google
  Web Artima.com   

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