Results 1 to 2 of 2

Thread: MakeFile

  1. #1
    divyanshu023 is offline Member
    Join Date
    Sep 2009
    Rep Power

    Default MakeFile

    How do i use makefile in java??

    If i am using windows environment
    1) which directory to create makefile..what kind of file will be a makefile...will it be a .java file??

    2) what is the use of makefile if i have independent .java programs

    3) please provide a short example of creating a makefile with 2 java programs,each taking similar 3 inputs as arguements in string args()

    e.g i use following statement to compile my 2 programs
    java myprogram abc 12345678 8765432

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    You don't use a "makefile" at all. If you want something to automate compilation look at Ant or Maven.

    Edit: P.S. makefiles have nothing to do with execution of a program (as that command shown and the talk about "args" is). A makefile is for creating a program from source files.

Similar Threads

  1. Help regarding makefile problem
    By rams in forum Networking
    Replies: 0
    Last Post: 11-17-2008, 03:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts