Download URL 汇总
Java:
JDK_API_1_6_zh_CN.CHM
1.6API文档(中文)的下载地址:
ZIP格式:
http://download.java.net/jdk/jdk-api-localizations/jdk-api-zh-cn/publish/1.6.0/html_zh_CN.zip
CHM格式:
http://download.java.net/jdk/jdk-api-localizations/jdk-api-zh-cn/publish/1.6.0/chm/JDK_API_1_6_zh_CN.CHM
在线文档:
http://www.gznc.edu.cn/yxsz/jjglxy/book/Java_api/index.html
Eclipse:
1:Eclipse
http://www.eclipse.org/downloads/
2:Web Tools Platform (WTP)
http://download.eclipse.org/webtools/repository/helios
3:
Apache Log4j 1.2.16 API :
http://logging.apache.org/log4j/1.2/apidocs/overview-summary.html
4:
MySql (mysql-connector-java):
http://www.mysql.com/downloads/connector/j/
5:struts
http://struts.apache.org/download.cgi#struts210
6:Struts2 json plug jar
http://code.google.com/p/jsonplugin/downloads/list
5:
groovy-docs-1.7.10.zip
http://dist.groovy.codehaus.org/distributions/groovy-docs-1.7.10.zip
安装Groovy Eclipse插件
找到插件的下载地址(一般找官方的):Eg:http://dist.codehaus.org/groovy/distributions/update/GroovyEclipse.zip
像一般的Eclipse插件安装一样,可以选择用Software Update安装或用link的方式进行安装,而且网上资料也很多,这里就不详细讲了。
[Eclipse插件的载入与安装:http://hi.baidu.com/dianjinglong/blog/item/2d7ce422305deda74623e8e2.html]
4:Eclipse Groovy plug
http://dist.codehaus.org/groovy/distributions/updateDev/
下面主要介绍 Groovy 插件的安装方法:
首先启动 Eclipse,点击 Help > Software Updates > Find and Install…:
然后在新窗口中点击 New Remote Site...,并在弹出窗口中输入:
Name: Groovy
URL: http://dist.codehaus.org/groovy/distributions/updateDev/
(更新和安装)
点击 Finish,接下来,Eclipse 会去搜索 Groovy 插件,并完成下载和安装。
(添加 Classpath Variables)
Groovy 插件安装成功后,将 groovy项目导入到 Eclipse 中。完成后,添加一个 Classpath Variables(Windows > Preferences > Java > Build Path > Classpath Variables)
new:
GRAILS_HOME:C:/grails-1.3.7
(禁用 Class auto generate)
然后还需要禁用 Groovy 插件的 Class auto generate 的功能,在 Contact 上 右键 > Properties > Groovy Project properties > 选择 Disable Groovy Compiler Generating class Files > 点击 OK
(将 gsp 关联到 JSP Editor)
接下来,配置使 Web tools 能够编辑 GSP。打开 Windows > Preference > General > Editors > File Associations,添加 *.gsp,并关联到 JSP Editor 即可
[JSP Editor,Web Page Editor,CSS JSP Editor,Text Editor]
(为 JSP 类型文件添加扩展名 *.gsp)
然后设置 Content Types:Windows > Preference > General > Content Types, 为 JSP 类型文件添加扩展名 *.gsp
至此,开发环境配置完毕。Grails 已经为 Eclipse 创建了描述运行的文件,点击 Run > Open Run Dialog。
可以在 Java Application 下看到名为 Grails的运行项目。选择并点击 Run 按扭。但 Grails 提供的 run 脚本目前还存在 bug,运行时可能会抛出如下异常:
java.lang.IllegalArgumentException: Variable $tools.jar in groovy-starter.conf
references a non-existent System property!
Try passing the property to the VM using -Dtools.jar=myValue
因此最后还需要修改 Contact 的运行参数,加入:
-Dtools.jar=%JAVA_HOME%\lib\tools.jar