udig-1.4.0开发环境搭建
-
下载需要的文件
dropins-3.7.2.zip: http://udig.refractions.net/files/downloads/extras/dropins-3.7.2.zip
eclipse-modeling-indigo-SR2-win32.zip: http://mirrors.yun-idc.com/eclipse//technology/epp/downloads/release/indigo/SR2/eclipse-modeling-indigo-SR2-win32.zip
eclipse-3.7.2-delta-pack.zip:http://archive.eclipse.org/eclipse/downloads/drops/R-3.7.2-201202080800/eclipse-3.7.2-delta-pack.zip
jre1.6.0_25.win32_gdal_ecw.zip:http://udig.refractions.net/files/downloads/jre/jre1.6.0_25.win32_gdal_ecw.zip
udig-1.4.0-sdk.zip: http://udig.refractions.net/files/downloads/udig-1.4.0-sdk.zip
-
设置dropins目录
解压eclipse-modeling-indigo-SR2-win32;将dropins-3.7.2解压到这个eclipse目录下dropins下面。
-
设置target目录
可在别处新建target,将udig-1.4.0-sdk.zip目录下的文件夹copy至target下
eclipse-3.7.2-delta-pack也解压至target下
如图:
-
设置Target Platform
jre1.6.0_25.win32_gdal_ecw文件夹内容可直接解压至:上述eclipse中。打开eclipse,选择jre1.6.0_25.win32_gdal_ecw这个jre,
在首选项中 Plug-in Develpoment->Target Platform中添加一个运行平台。把target下的两个文件夹udig_sdk和eclipse两个文件夹添加到平台路径中,命名为uDig SDK,并设置为Active。
-
运行
转到Plug-in Develpoment透视图,把net.refractions.udig以源码形式导入,就能看到这个工程了。启动udig.product。如图:
结果如下: