473,473 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

HOw to call C/C++ Program in Java.

16 New Member
I want to call C program from java.

Pravin Mangalam
Oct 29 '13 #1
2 1316
chaarmann
785 Recognized Expert Contributor
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:
Expand|Select|Wrap|Line Numbers
  1. Runtime.getRuntime().exec("myProgram.exe")
Oct 29 '13 #2
lovetopravin
16 New Member
Thank You so so much..

Pravin Mangalam
Nov 21 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Laura | last post by:
Hello, I'm having a problem using Javascript. This may not even be possible, but maybe there is another way of going about it. I have a bunch of .js files that I insert into my my html file...
3
by: Shasta | last post by:
Using VB.NET how can I call a java Function from WebForm Button control? Any example code:? -- Tek Gurus Inc President
2
by: mhust6 | last post by:
I am trying to call a java method from within my Javascript, but cannot seem to get it to work. All the examples I have found online and in the forums are using Java applets. I have a method that...
0
by: nagarajumeesala | last post by:
Hai, I am using maxdb database, my requirement when the database table is updated i need to call a java class. give me your susggestions and solutions. regards,
4
by: imrahul | last post by:
how to call a java method from c# code
1
by: balkuzhali | last post by:
How to call External Java script file in Jsp
2
kaleeswaran
by: kaleeswaran | last post by:
hi! i have doubt.... is it possible to call the java function with in the javascript?...
2
by: alexlunar | last post by:
Hello, I am trying to figure out when I have done wrong or what i have not included in my most recent edit of my payroll code. My code from last week was // Week 2 payroll // payroll program...
2
by: swamyvnvs | last post by:
HI friends, i have a problem when i call a java method from php code, i saw php.net site ifollow all thr steps , but i got the classNotFoundExceptions. my code is like this JavaClass ...
5
by: brandy3619 | last post by:
Please find below my Java script method in which i call a java method to fetch a locale specific error message alert(<%=Msgs.getMessages("MessageResources", "errors.textNotLatin"); I can get the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.