I have an existing Java project that I created using Eclipse on a different computer and uploaded to github. On my Fedora machine, I used Anjuta's github plugin to import the project and the import worked fine (I can see all my java files in the Project pane).
However, when I click Run -> Execute I get the following errors:
/home/bhavesh/AnjutaProjects/word_wave.git/deltaHacks/src/deltaHacks/LeapFun.java: line 1: package: command not found
/home/bhavesh/AnjutaProjects/word_wave.git/deltaHacks/src/deltaHacks/LeapFun.java: line 2: import: command not found
/home/bhavesh/AnjutaProjects/word_wave.git/deltaHacks/src/deltaHacks/LeapFun.java: line 3: import: command not found
/home/bhavesh/AnjutaProjects/word_wave.git/deltaHacks/src/deltaHacks/LeapFun.java: line 5: public: command not found
/home/bhavesh/AnjutaProjects/word_wave.git/deltaHacks/src/deltaHacks/LeapFun.java: line 7: syntax error near unexpected token `('
/home/bhavesh/AnjutaProjects/word_wave.git/deltaHacks/src/deltaHacks/LeapFun.java: line 7: ` public static void main(String[] args) {'
It seems that Anjuta doesn't recognize this project as a Java project. What setting should I change to make it recognize the Java?