Java软件安装
a.eclipse
1.下载jdk
2.配置环境变量:JAVA_HOME --> C:\Program Files\Java\jdk1.8.0_45(安装路径)
--> Path,C:... ;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
3.安装eclipse
4.hibernate 插件(配置文件)
1).eclipse -- help -- install new software
2).location:jbosstools-4.2.3.Final_2015-03-26_22-41-56-B370-updatesite-core.zip的路径
3).最后一个中文件 -- JBoss Web and Java EE Development -- Hibernate Tools
4).下一步 --> ... -->完成
5.Struts 插件(配置文件)
strut2:包括feature + plugins
把struts复制到eclipse安装路径中的dropins中
(联网)
1).Window --> preferences --> xml catalog --> user specified entries --> add
2).location:struts-2.3.dtd
key:-//Apache Software Foundation//DTD Struts Configuration 2.3//EN
alternative web address:http://struts.apache.org/dtds/struts-2.3.dtd
location:xwork-validator-1.0.3.dtd
key:-//Apache Struts//XWork Validator 1.0.3//EN
alternative web address:http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd
即:
1.解压struts2-core-2.3.24.jar
2.找到其中的struts-2.3.dtd,并把它放在struts-2.3.24包里
3.window --> preferences --> xml catalog --> user specified entries--> location --> file system --> struts-2.3.dtd的路径 --> key:-//Apache Software Foundation//DTD Struts Configuration 2.3//EN --> alternative web address:http://struts.apache.org/dtds/struts-2.3.dtd
4.新建动态项目的xml文件 --> 下一步,新建DTD文件 --> 下一步,XML Catalog entry --> 完成
Q&A
1.缺少xml文件
1)xml头部是否正确
2.error page 报红叉
1)删除workspace中的.meta删掉,然后重新配置eclipse
2)workspace,jsp编码配置。dtd配置
3.build path 只有config,没有remove
1)show view --> other --> package explorer
2)在包中就能显示remove libraries
4.包名减肥
package explorer下拉菜单 --> package presentation --> hierarchical
5.配置编码
1.window --> preferences --> enco -->...
2.color and font --> java editor text font / javadoc display font
b.tomcat
1.安装tomcat
2.window --> preferences --> server --> runtime environments --> add,tomcat vxx --> 下一步,安装路径
3.server location --> use tomcat installation --> server path:tomcat安装路径 --> deploy path:webapps
Q&A
1.异常(NotFountClass|java.net.UnknownHostException)
1).先romvoe 项目,然后clean Tomcat,再clean Tomcat Work Directory
2).全部移除build path 所有jar包,重新添加jar包(jar包不能重复)
2.failed to create the part's controls
1).右击 --> JSP Editor
c.mysqls
1.官网下载community版mysql + workbench(可视化)【http://dev.mysql.com/downloads/mysql/】
Q&A
1.java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
1).开启mysql
2).导入mysql—connector的那个jar
3).菜单栏里选project -> clean,重新编译
d.powerdesigner16.5
1.安装包
2.pdflm16_cr 解压缩,把dll放在安装目录下