Jump to content

need help urgently.

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
notpro

notpro

    Newbie

  • Members
  • Pip
  • 5 posts
i have written a java code for my assigment but i need to supply a makefile for the compilation process. I do not know to do a makefile for it. can someone help me. i only have one class file, the square.class file. below is the code i written
square.class: square.java
javac square.java
i have save the file as a batch file but the file cannot be display when i click on it.

#2
stalin12

stalin12

    Newbie

  • Members
  • Pip
  • 3 posts
sorry friend i am in learning stage only this forum helps the best..i cant help u
used bmw football betting

#3
morefood2001

morefood2001

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,720 posts
A java make file looks like this according to my java programming book:

 
JAVAC = javac
JFLAGS =
 
SUBDIRS = subdir1 subdir2
 
all:
        @@for file in $(SUBDIRS); do
                  $(JAVAC) $(JFLAGS) $(file)/*.java
        done

Hopefully this will work for you.