Question: *JAVA* / UNIX Can someone help me figure out why my Makefile is not working? I know you can't see the code and it will

*JAVA* / UNIX

Can someone help me figure out why my Makefile is not working?

I know you can't see the code and it will be hard to work it out, but any ideas about how I would go about fixing this?

My Matrix.java is an ADT implemented as an array of Lists. Contains a private Entry class that represents the column and data(value) of the matrix, as well as constructors, access functions, manipulation functions, etc.

This is my makefile:

 MAINCLASS = Sparse JAVAC = javac JAVASRC = $(wildcard *.java) SOURCES = $(JAVASRC) Makefile README CLASSES = $(patsubst %.java, %.class, $(JAVASRC)) JARCLASSES = $(patsubst %.class, %*.class, $(CLASSES)) JARFILE = $(MAINCLASS) all: $(JARFILE) $(JARFILE): $(CLASSES) echo Main-class: $(MAINCLASS) > Manifest jar cvfm $(JARFILE) Manifest $(JARCLASSES) chmod +x $(JARFILE) rm Manifest %.class: %.java $(JAVAC) $ 

*JAVA* / UNIX Can someone help me figure out why my Makefile

bash-4.2$ ls-a ..backup List.java ListTest.java Makefile Matrixclient.java Matrix.java Sparse.java -bash-4.2$ make javac ListTest.java ListTest.java:28: error cannot find symbol A.moveFront symbol: method moveFront) location: variable A of type List 1 error Makefile:24: recipe for target 'ListTest.class' failed make: **[ListTest.class] Error 1 bash-4.2$ ls-a ..backup List.java ListTest.java Makefile Matrixclient.java Matrix.java Sparse.java -bash-4.2$ make javac ListTest.java ListTest.java:28: error cannot find symbol A.moveFront symbol: method moveFront) location: variable A of type List 1 error Makefile:24: recipe for target 'ListTest.class' failed make: **[ListTest.class] Error 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!