Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Java only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Java
HOw to call C/C++ Program in Java.
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
lovetopravin
New Member
Join Date:
Oct 2013
Posts:
16
#1
HOw to call C/C++ Program in Java.
Oct 29 '13, 07:14 AM
I want to call C program from java.
Pravin Mangalam
chaarmann
Recognized Expert
Contributor
Join Date:
Nov 2007
Posts:
785
#2
Oct 29 '13, 09:09 AM
Either put it in a "native" method (fastest execution time),
(see "write native methods in java")
or compile it and then call it via a shell:
Code:
Runtime.getRuntime().exec("myProgram.exe")
Comment
Post
Cancel
lovetopravin
New Member
Join Date:
Oct 2013
Posts:
16
#3
Nov 21 '13, 06:12 AM
Thank You so so much..
Pravin Mangalam
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment