引用-配置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


 
ArcGIS plug-ins for the Eclipse Integrated Development Environment (IDE) have been created to ease ArcGIS Engine and ArcGIS Server application development. This topic describes the necessary steps to install and configure Eclipse and their ArcGIS plug-ins.
 
 
ArcGIS Server for Java Eclipse plug-in is compatible with the Eclipse IDE for Java EE Developers—built using Eclipse 3.3 and Web Tools ( WTP) 2.0.  Enhancements provided by this platform include:
 
  • 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. 
 
Creating ArcGIS update sites and installing ArcGIS Plug-in
 
To install ArcGIS Server plug-ins for Eclipse, you must have ArcGIS Server for the Java platform installed on your machine. The ArcGIS Server plug-ins can be installed by creating a local update sites for the plug-ins. 
 
  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.

 

 
Repeat the steps to create another update site ArcGIS SDK Local Update Site at the location %ARCGISHOME%/java/tools/eclipse_plugin/arcgis_update_site\doc'. 
 

     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. 

 
     12. Click on the Overview icon to display an overview of features.
 
 
 

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

 

     14.  This page provides information about getting started with your ArcGIS plug-in. 
 
Congratulations, you have successfully created a local update site for ArcGIS Plug-ins and installed the ArcGIS Server for Java Plug-in. 
 
 

 

转载于:https://www.cnblogs.com/victoire/archive/2010/01/28/1658138.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值