Bookmark Topic Watch Topic
  • New Topic

C execute in java program  RSS feed

 
chandu joshi
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Report post to moderator
It is possible to execute C in java.If yes so how.Tell me through help of program in which C execute in java program or any other java program.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
If you have an executable, take a look at the Runtime.exec methods. They allow you to run non-Java programs from with in a JVM.

If you want to implement Java methods in C, or call C routines, take a look at the JNI API, which specifies bindings to C and C++.
 
Joe Ess
Bartender
Posts: 9426
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
This post appears to be a duplicate of this post, so I'm closing this one.
[ September 27, 2005: Message edited by: Joe Ess ]
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!