-4

I'm using eclipse. I created a git repository and pulled some code from a url. I want to run that code but when I try to run, I get this error:

Select what to run:

Ant Build

Ant Build...

Is the code in git repository not executable? How can I run this project? Any help is appreciated.

bug
  • 71
  • 1
  • 11

1 Answers1

2

A git repo doesn't know about the nature of the text files it stores: it just make sure they are replicated exactly the same.

Once clone, you need to check haw the project work, independently of Git.
In this case, see "Eclipse: Running Ant buildfiles", or use the Ant view in Eclipse.
You can make one of the ant target run automatically too.

If this isn't an ant project, see:

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Should I coppy the files in git repo to another Java Project to run? Because the files have the empty J as in "Eclipse won't compile/run java file". When I try to import the files from git repo to a new project I get this error: Cannot create file because existing file of wrong type exists. – bug Mar 28 '15 at 15:12
  • @bug you can try to create a new java project and compare the two, to spot what is missing in the one from the git repo. – VonC Mar 28 '15 at 15:15