• Post Reply Bookmark Topic Watch Topic
  • New Topic

c& java!!!!!!1  RSS feed

 
dheeraj chhabra
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi! there!!!
my question is :-->

How to compile and excute 'C-program' using java???/
 
Ted Reynolds
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what you could do is find a open source c compiler executable, linker and such put them on your system path then when you want to compile and execute the c program you use a runtime exec to fire the compiler off. then the linker and then finally the compiled and linked executable. I hope this helps.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As this has nothing to do with Swing or AWT, I'm moving this to Java in General (Intermediate.) Followups there, please.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!