引用-配置ArcGIS Server 9.3 Java开发环境(eclipse)

引用一:http://blog.csdn.net/bjqincy/archive/2009/03/18/4002664.aspx

【概述】叙述如何在Window下配置ArcGIS Server 9.3的Java开发环境(eclipse)

【环境】Windows XP SP2,ArcGIS Server 9.3

先决条件

ArcGIS Server的Java开发首先需要安装Java Web服务器, ArcGIS Server 9.3支持的服务器种类有:
Apache Tomcat
IBM WebSphere
JBoss

这里采用的是Tomcat 6.0.16。

下载 eclipse

ArcGIS Server 9.3支持的eclipse版本为3.3(europa),需要eclipse基本平台和WTP 2.0,建议直接下载针对J2EE开发的All In One套件包:
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/europa/winter/eclipse-jee-europa-winter-win32.zip

从本地安 装ArcGIS插件

在 eclipse主菜单中选择Help->Software Updates->Find and Install,选择“Search for new features to install”,点击右侧的“New Local Site”,添加本地插件升级路径:“%ARCGISHOME%/java/tools/eclipse_plugin /arcgis_update_site/server/”,确定。另外,与此类似,添加“%ARCGISHOME%/java/tools /eclipse_plugin/arcgis_update_site/doc”。

在上述操作完成后,下一步eclipse将自动扫描上述路径,发现可用插件时会给出提示,后续操作根据提示下一步即可。

从 Internet安装ArcGIS 插件

相 比从本地安装ArcGIS插件,从Internet安装更能在以后保持软件的升级更新。安装过程和从本地类似,只不过在添加升级站点的时候,选择“New Remote Site”,添加升级地址:“http://downloads.esri.com/EDN/java/plugins/eclipse/v93/”。

Ok,当eclipse提示你重启时,插件已经安装完成,重启eclipse后可以看到新的Overview屏幕,上面包含了新增的ArcGIS的 内容。

新建项目 进行环境测试

1. 在eclipse主菜单选择New->Project…,点击“ESRI Templates”下的“ArcGIS Web Project”

2. 在新建ArcGIS Web Project窗口对项目进行必要的配置,还没有配置Target Runtime时,首先电解右侧的“New…”按钮新建一个已经安装的J2EE Web服务器。


3. 点击下一步,在此界面应该可以添加GIS Server,忽略之,因为不能双击“Add GIS Server”列表项(破解版XP的bug,可能在某些番茄花园版xp等系统上出现),点击完成。

4. 运行项目,出现如下界面,表示项目部署运行成功,但是没有数据。

 

 引用二:http://tracykelvin.javaeye.com/blog/308708

This document was published with ArcGIS 9.3.

In this topic


 
  • Java EE 5 support
  • A graphical HTML/JSP/JSF editor
  • A new Quick Access feature (ctl-3) to enhance IDE navigation
 

 
Eclipse IDE for Java EE Developers has support for most popular Java Application Servers although, an application server is not included with any of the Eclipse download options. You must obtain an application server separately.
 
Relevant drivers for supported ArcGIS Server development include:
 
Increasing the Memory Heap Size in Eclipse
Eclipse allocates 256 megabytes of java heap memory by default. However to avoid out of memory errors during installation of ArcGIS plug-ins it is strongly recommended that you increase this amount (to 1024 megabytes).  It is also strongly recommended to add the Max Permgen size available to Eclipse and set it to 256M.
 
  1. Open the eclipse.ini file under the eclipse installation directory(eg. C:\eclipse) with a text editor.
  2. By default, eclipse.ini contains something like:
          -showsplash
          org.eclipse.platform
          --launcher.XXMaxPermSize
          256m
          -vmargs
          -Xms40m
          -Xmx256m

 

   3.  Which sets the heap space to 40MB initially and a maximum of 256MB, and also specifies a PermGen size of 256MB

   4.The suggested settings for ArcGIS Server development are:

          -showsplash
          org.eclipse.platform
          -vmargs
          -Dosgi.requiredJavaVersion=1.5
          -Xms784m
          -Xmx1024m
          -XX:PermSize=256m
          -XX:MaxPermSize=256m
          -XX:+UseParallelGC

 

   5.  Save and close the eclipse.ini file.

 
The ArcGIS Server for Java 9.3 Eclipse plug-in requires the latest version of Eclipse and Web Tools Platform (WTP 2.0.x).  Enhancements required by the plug-in include the JavaServer Faces Tools (JSF) project.  Upgrading to the latest Eclipse platform binary requires a full binary download considering, as of Eclipse 3.2, it is not possible to upgrade the Eclipse platform itself, only it's features.  Fortunately, Eclipse provides "all in one" bundles and we recommend the Eclipse IDE for Java EE Developers
 
Compatibility with Eclipse 3.2 plug-ins. 
Eclipse SDK 3.3 is upwards compatible with Eclipse SDK 3.2. as described in the Eclipse 3.3 plug-in migration guide, and consequently, plug-ins for Eclipse SDK 3.2 should work with Eclipse SDK 3.3.  Plug-ins for Eclipse SDK 3.3, like the ArcGIS Server for Java 9.3 Eclipse plug-in, will not be useable in Eclipse SDK 3.2. 
 
  1. On the Eclipse main menu, select Help->Software Updates->Find and Install.
  2. On the Install/Update dialog box, choose Search for new features to install and click Next.

   3. The ArcGIS plug-ins have 3 flavors, 1.doc, 2.engine and 3.server. The doc plug-in contains the documentation for the ArcGIS Engine and ArcGIS Server SDKs. The engine plug-in is for developers who wish to build desktop applications using ArcGIS Engine. The server plug-in is for developer who wish to build web applications using ArcGIS Server. You may need to create a Local Update site to install each of these plug-ins.  To create a new update site, click on New Local Site in the Install dialog box. You may see different sites listed depending on the Eclipse version you have installed.

    4. Browse the location of the new local site as '%ARCGISHOME%/java/tools/eclipse_plugin/arcgis_update_site\server' and click OK. Change the name in the Edit Local Site dialog box to ArcGIS Server Local Update Site and click OK.

     5.  You should now see the ArcGIS Server Local Update Site appear in the list.  Ensure that the ArcGIS Server Local Update Site is checked and click Finish.

     6. The Search Results window displays the features available for install.  Drill down under ArcGIS, select the install plug-in, and click Next

    7.  Accept the Feature License agreement and click Next

    8.  Choose an install location and click Finish

    9.  Click Install All on the Verification window. 

    10. Click Yes to restart Eclipse. 

    11. Once Eclipse restarts, you should see a Welcome page, if you do not, go to the Help menu and click the Welcome link. 

   13.  Click on the ESRI Globe icon to display the ESRI Information Page. 

 

 

posted @ 2010-01-28 10:39  Victoire Chan  阅读(4318)  评论(0编辑  收藏  举报