<If the picture cannot be displayed, please go to my original blog to read this article: http://287854442.blog.163.com/blog/static/1150397200994102248622/>
Demo environment:
Eclipse SDK
Version: 3.4.2
Build ID: M20090211-1700
1. For more information about groovy, see the official website.
Official website address: http://groovy.codehaus.org/
2. Groovy can be used independently. Eclipse is not required. Groovy can be found on the official website mentioned above.
3. Groovy provides plug-ins for eclipse3.4 and later versions. It is easier to develop in eclispe.
Next I will start to talk about how to install the groovy plug-in.
At http://policy.codehaus.org/eclipseinin, you can find the detailed installation instructions of policyin eclipse.
I will pay attention to the difference below for improvement.
Steps:
1. Open eclipse (version 3.4 and later) and find "Software Updates"
2. Select "available software"
3. Click "add site" on the right to bring up "location"
4. According to the official documentation (the above URL is), the updated URL of version 3.4 is "according to official instructions, version 3.4 should be" http://policy.codehaus.org/eclipse?plugin=], but after I enter it, I will find it:
"Moved: groovy Update site for eclipse 3.4 now at http://ci.repository.codehaus.org/greclipse/snapshot/e34 /"
The update address of groovy in eclipse3.4 is http://ci.repository.codehaus.org/greclipse/snapshot/e34/"
This is speechless. If you do not take a closer look, it is easy to ignore and cause installation failure!
5. OK. Now let's go back to step 4 and fill in "http://ci.repository.codehaus.org/greclipse/snapshot/e34/" in" location /"
Click "OK", select the check box before "groovy Update site", and click "Install" on the right ". For example:
6. Have a cup of coffee. Wait a moment.
7. after the installation is complete, test the development environment, "file" --> "new" to see if there is "groovy" (for example). If yes, it indicates that the groovy Eclipse plug-in has been installed successfully, you can start your groovy journey.
Compiling groovy interface in Eclipse:
If you have any questions, please reply directly to the post. I will reply as soon as possible!