MyEClipse开发环境搭建步骤

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Myeclipse安装步骤指南

一:安装myeclipse

二:安装JDK

1、安装JDK

注意:把安装路径记下来!!安装完成后:

2、配置环境变量:

(1)配置环境变量路径:我的电脑—属性—高级系统设置—高级—环境变量—新建

(注意:有的话直接在后面添加,用;分号隔开)

(2)变量值:

①变量名path (有就在原有基础上加; 分号把变量值添加进去)

变量值:%JA V A_HOME%\bin;%JA V A_HOME%\jre\bin

②变量名:CLASSPA TH

变量值:.

(要加.表示当前路径,当前路径的意思就是你现在编译运行的程序class文件所在的地方)

③变量名:JA V A_HOME 变量名:JDK 安装路径(默认:C:\Program Files\Java\ \jdkXXX )

3、验证JDK是否配置成功

CMD 输入命令javac 成功输出安装配置成功

三:tomcat安装

1、下载——安装(安装版)

路径:myeclipse—myeclipse—preferences—servers—Tomcat6.X 在这选择tomcat 的路径成功后可见:

2、绿色版

路径:myeclipse—myeclipse—preferences—servers—Tomcat6.X

四、Myeclipse 安装SVN 插件

方法一:在线安装

找到栏目help———eclipse configuration center———进入后点software 页面———点击add site 如图

Name:SVN

URL:/update_1.8.x

3键Add to Profile

4.在右下角窗格(Pending Changes )中点击Apply。安装重启后MyEclipse即可。方法二:包安装(如果以上方法太慢,请尝试下面的方法)

(1)下载svn插件,最新的已经是1.8版本了插件下载地址:

/files/documents/906/49209/site-1.8.8.zip

(2)解压svn包,找到其中的两个文件夹features和plugins目录,在Myeclipse目录下面新建一个文件夹,名称随意,可以就叫svn,将解压的两个文件夹放在这个新建的目录中

(3)找到Myeclipse的安装目录,在安装目录下的

configuration\org.eclipse.equinox.simpleconfigurator这个目录中有个文件,在这个文件的最后面添加内容,内容由下面的操作得来。

1. 随便新建一个java工程

2.新建一个类,类名:PluginConfigCreator

把一下代码全部复制到PluginConfigCreator 类中:

import java.io.File;

import java.util.ArrayList;

import java.util.List;

public class PluginConfigCreator {

public PluginConfigCreator()

{

}

public void print(String path)

{

List list = getFileList(path);

if (list == null)

{

return;

}

int length = list.size();

for (int i = 0; i < length; i++)

{

String result = "";

String thePath = getFormatPath(getString(list.get(i))); File file = new File(thePath);

if (file.isDirectory())

{

String fileName = file.getName();

if (fileName.indexOf("_") < 0)

{

print(thePath);

continue;

}

String[] filenames = fileName.split("_");

String filename1 = filenames[0];

String filename2 = filenames[1];

result = filename1 + "," + filename2 + ",file:/" + path + "/" + fileName + "\\,4,false";

System.out.println(result);

} else if (file.isFile())

{

String fileName = file.getName();

if (fileName.indexOf("_") < 0)

{

continue;

}

int last = stIndexOf("_");// 最后一个下划线的位置

String filename1 = fileName.substring(0, last);

String filename2 = fileName.substring(last + 1, fileName .length() - 4);

result = filename1 + "," + filename2 + ",file:/" + path + "/"

+ fileName + ",4,false";

System.out.println(result);

}

}

}

public List getFileList(String path)

{

path = getFormatPath(path);

path = path + "/";

File filePath = new File(path);

if (!filePath.isDirectory())

{

return null;

}

String[] filelist = filePath.list();

List filelistFilter = new ArrayList();

for (int i = 0; i < filelist.length; i++)

{

String tempfilename = getFormatPath(path + filelist[i]);

filelistFilter.add(tempfilename);

}

return filelistFilter;

}

public String getString(Object object)

{

if (object == null)

{

return"";

}

return String.valueOf(object);

}

public String getFormatPath(String path)

{

path = path.replaceAll("\\\\", "/");

path = path.replaceAll("//", "/");

return path;

相关文档
最新文档