Java开发环境搭建全过程(上)
今天重装系统,对java开发环境重新进行了搭建,记录下自己搭建的过程留做以后参考。。。^o^
第一部分 J2EE环境搭建
用的是j2sdk1.5+Tomcat
1. 安装jdk到一个指定目录下,这里我装在F:\Program Files\Java,安装好后会有两
个文件夹,jdk1.5和jre1.5。
2. 配置环境变量,JAVA_HOME=F:\Program Files\Java\jdk1.5
PATH=%JAVA_HOME%\bin;CLASSPATH=.; %JAVA_HOME%\lib;
配置过程中要注意的是CLASSPATH中要加入.;
最后HelloWorld对配置进行检验
3,安装Tomcat5到F:\Program Files\Java\Tomcat 5.5,
打开http://localhost:8080进行Tomcat的测试,再配置环境变量,
TOMCAT_HOME= F:\Program Files\Java\Tomcat 5.5
PATH=% TOMCAT_HOME%\bin;
4,下载Eclipse
5,在F:\Program Files\eclipse-SDK-
在目录中新建一个文本文档,命名为language.link(其实随便怎么命名都可以),在这个文档中加入:
path=F:\\ProgramFiles\\eclipse-SDK-
这样启动eclipse后就将其全部汉化了。(在eclipse中安装插件有两种方法,一种就是我这用的link文件法,这个方法的优点是结构清楚,容易卸载,另一种就是将插件文件复制到eclipse中相应的plugins,features目录下,这种方法的优点是只需要复制文件,最简单)
6.然后下载EnterpriseWorkbenchInstaller_
然后“窗口--à首选项”,如下图:
然后写一个HelloWord进行测试,完成任务。
呵呵,好不容易弄好了,我们接着继续搭其他的插件。。。。
第二部分 SWT/JFace开发环境搭建
1.在 http://www.swt-designer.com/.下载SWT Designer将plugins目录和features目录复制到eclipse的对应目录下;
2. 新建项目,出现如下图就表示安装成功了:
然后写一个HelloWorld进行测试,结果如下:
代码如下:
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](/Images/OutliningIndicators/None.gif)
作者:洞庭散人
出处:http://phinecos.cnblogs.com/
posted on 2006-06-02 20:40 Phinecos(洞庭散人) 阅读(6052) 评论(0) 编辑 收藏 举报