Execute Makefile using Java command?


I'm just wandering. Is there a possibility to execute makefile.in using a Java command? Something like what you can do with Java and Ant.



If I understand the question and comments correctly, then you want to use something like <a href="http://download.oracle.com/javase/7/docs/api/java/lang/Runtime.html#exec%28java.lang.String%29" rel="nofollow">Runtime.exec(String)</a>.

String command = "make stuff" ; the make command you wish to run String [] envp = { } ; if you want to set some environment variables File dir = new File ( "/home/me/" ) ; // this is the directory where the Makefile is Process proc = Runtime.getRuntime().exec(command,envp,dir); proc.waitFor ( ) ;


  • MATLAB uitable row generation from user input
  • Yii generate a model file using php code instead of gii tool
  • How do i convert a List to List in c#
  • How do CL commands build their exact parameter lists?
  • Gnuplot multiplot: Convenient method for creating more complex layouts
  • Using bitbake is it possible to have a different do_install for a package based on the target image?
  • Counting Treaps
  • How do I check if System::Collections:ArrayList is empty / nullptr / null?
  • runtime error when linking ffmpeg libraries in qt creator
  • Portable JRE on Linux - possible?
  • Ruby on Rails App deployed to heroku showing “We're sorry, but something went wrong”
  • How to retrieve information from antrun back to maven?
  • Detecting null parameter in preprocessor macro
  • C# program and C++ DLL compiled for 32-bit system crash on 64-bit system
  • Multicolored edittext hint
  • Security issues with PHP's Readfile method
  • Redux Form - Not able to type anything in input
  • onBackPressed() not being executed
  • Do I need to reset a Perl hash index?
  • How can I sort a a table with VBA with given text condition?
  • Installing Apache MyFaces 2 on WildFly 8.2.0
  • Use of this Javascript
  • How to install a .deb file on a jailbroken iphone programmatically?
  • Ajax Loaded meta Tags
  • All Classes Conforming to Protocol Inherit Default Implementation
  • Using jQuery closest() method with class selector
  • Xamarin Forms - UWP Fonts
  • Array.prototype.includes - not transformed with babel
  • Arrow is showed instead of the material design version hamburger icon. Why doesn't syncState in
  • Delete MySQLi record without showing the id in the URL
  • AT Commands to Send SMS not working in Windows 8.1
  • Arrays break string types in Julia
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • Why can't I rebase on to an ancestor of source changesets if on a different branch?
  • How does Linux kernel interrupt the application?
  • apache spark aggregate function using min value
  • Programmatically clearing map cache
  • Sorting a 2D array using the second column C++
  • git trying to push non-existent file … after clearing cache