package aa;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import aa.*;
import aa.Mapper;
import aa.Reducer;
/**
* Some example code on how to use the MapReduce Framework
*/
public class Example2 implements Mapper, Reducer
{
}
以下錯誤我得到下面。我不確定錯誤是什麼。我已經將Mapper和Reducer包含在同一個軟件包中。Java錯誤(找不到符號)
Example2.java:10: error: cannot find symbol
import aa.Mapper;
^
symbol: class Mapper
location: package aa
Example2.java:11: error: cannot find symbol
import aa.Reducer;
^
symbol: class Reducer
location: package aa
Example2.java:16: error: cannot find symbol
文件名與類/接口名稱匹配嗎?顯示Mapper和Reducer的代碼和文件名以及您嘗試編譯的全部輸出 – hvgotcodes 2012-02-02 15:00:33