---
title: "eclipse与flex的集成"
author: "evan0625"
date: "2011-01-14T12:19:11Z"
tags: []
categories: ["Web前端"]
slug: "eclipse-flex"
draft: false
lastmod: "2011-01-14T12:19:11Z"
id: 871097
url: "https://evan0625.iteye.com/blog/871097"
---

**所需文件：**  
Eclipse3.5正式版eclipse-jee-galileo-win32.zip  
FB3\_win.exe  
ProblemManager.zip  
**步骤：**  
第一步：安装软件  
1.解压eclipse到指定路径，  
2.安装FB3\_win.exe

第二步： 配置  
1.首先建立插件文件存放目录：  
D:\\eclipse\_plugins\\flex3\\eclipse\\features  
D:\\eclipse\_plugins\\flex3\\eclipse\\plugins  
以上路径根据本机实际情况确定  
2.然后把Flex Builder3 中的文件拷贝到对应目录下：  
{flex builder3主目录}\\features\\com.adobe *  -&gt; D:\\eclipse\_plugins\\flex3\\eclipse\\features  
{flex builder3主目录}\\plugins\\com.adobe *  -&gt; D:\\eclipse\_plugins\\flex3\\eclipse\\plugins  
3.在eclipse目录下建立文件夹links，并在文件夹下建立文件flex.link  
文件内容为 path=D:\\\\eclipse\_plugins\\\\flex3 （注意：一定要是你第一步创建的插件存放目录，到文件夹flex3为止的路径）保存文件。  
4\. 至于安装Flex Builder 3 的目录，建议保留，因为flex 的 sdk还在里面  
5.重启，flex与eclipse安装成功。

第三步：配置flex server  
1\. 右键单击相应工程，选择Properties。  
2.首先选择Flex Build Path，在Library path的选项卡中，指定好flex sdk(就是flex builder3带的sdk)的路径  
3.然后选择Flex Compiler， 指定Flex SDK version； 检查Additional compiler arguments里参数是否正确,如  
\-services “&lt;工程路径&gt;/项目名称/WebContent/WEB-INF/flex/services-config.xml” -locale en\_US（总之是services-config.xml的绝对路径即可）  
4.最后选择Flex Server， RootURL设置为http://localhost:端口号/项目名； Contenxt root设置为 项目名（有可能这一步不能设置，不过没有关系，不影响操作）  
5.如果你的项目编译正常，那么恭喜你可以开发了。如果出现“An internal build error has occurred”错误提示。找到插件文件存放目录下的plugins文件夹下的“com.adobe.flexbuilder.project\_3.0.214193\\zornproject.jar”，双击以rar格式打开，找到“com/adobe/flexbuilder/project/compiler/internal”目录，删除里面的所有以ProblemManager开头的类，并将必备文件中ProblemManager.zip中“com/adobe/flexbuilder/project/compiler/internal”的ProblemManager.class放在zornproject.jar的相应目录。可参考：http://insideria.com/2009/09/fixed-an-internal-build-error.html