Install Eclipse
Eclipse is an open source development community. If you have not already done so, download and install Eclipse on your development machine. For more information, see Eclipse and Eclipse IDE for Java Developers.
Checkout Pig
Create a directory on your development machine (for example "mypig") and checkout the Pig source from SVN: http://svn.apache.org/repos/asf/pig/trunk
Generate eclipse files:
ant clean eclipse-files
Import Pig project into Eclipse
- Open Eclipse
- Select File->Import
- Select General->Existing Projects Into Workspace
- Select root directory (point to <top-level-directory>)
- Click Finish
Troubleshooting
- Build problems: Check if eclipse is using JDK version 1.6, pig needs it (Under Preferences/Java/Compiler).