0

Hello!

I have write a program on Java. This Java program creates a file which have C code for Windows. I need to compile everytime this C code by copying it to another IDE. Can i do this compile process from java program? (C code is very simple and it is just one C file. There is no dll or something).

Thank you!

2
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by sirin_adam
1

You could call the c compiler from the java program using one of the classes: Process, Runtime, ProcessBuilder or Desktop

0

You could call the c compiler from the java program using one of the classes: Process, Runtime, ProcessBuilder or Desktop

I was thinking the same think but i could not found anything about how to compile a c program from command line with DevC. I should use DevC because it is portable and free.

Edited by sirin_adam: n/a

0

There are free c compilers available as command line programs.

I installed portable c compiler (pcc) and mingw but i could not understand how to compile a c code :( It is very complicated i just need to compile a very simple c code...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.