Here is the makefile code.
Spell_Checker.class: Dictionary.class Spell_Checker.java
javac Spell_Checker.java
Dictionary.class: Dictionary.java
javac Dictionary.java
Here is the error log for the makefile when I type make inside of terminal.
javac Dictionary.java
Picked up _JAVA_OPTIONS: -Xmx32m
javac Spell_Checker.java
Picked up _JAVA_OPTIONS: -Xmx32m
Spell_Checker.java:26: error: cannot find symbol
Dictionary spell_check_this = new Dictionary(DICT_FILE);
^
symbol: class Dictionary
location: class Spell_Checker
Spell_Checker.java:26: error: cannot find symbol
Dictionary spell_check_this = new Dictionary(DICT_FILE);
^
symbol: class Dictionary
location: class Spell_Checker 2 errors
makefile:2: recipe for target 'Spell_Checker.class' failed
make: *** [Spell_Checker.class] Error 1
I'm new to makefile and I have a java file called Spell_Checker.java that calls Dictionary.java to check a file if it's spelled correctly. I'm having troubles figuring out how to write the makefile correctly. Thanks!