Tag Archives: NetBeans
Using NetBeans with the ArcGIS Runtime Java API
NetBeans is another great development environment that allows programmers to quickly and easily build great desktop, mobile and web applications with Java. NetBeans also supports mobile and Web development with Java, C++, and many different scripting languages. The NetBeans IDE is free, open source, and has a worldwide community of users and developers.
Because the ArcGIS Runtime SDK for Java provides a pure Java API and development experience, it plugs in nicely with IDEs such as NetBeans, even though the ArcGIS Runtime SDK does not ship with NetBeans modules. Continue reading
Delivering your ArcGIS Runtime Java Apps with Java Web Start
We often get asked if applications built with Esri’s ArcGIS APIs can be used with Java(tm) Web Start. The answer is ‘yes’, but people still experience a “trial and error” process, unfortunately. In a sincere effort to try and clarify … Continue reading
AgsJWS 9.3.1 Developer Dependencies
The ArcGIS Java WebServices (AgsJWS) libraries are included with the ArcGIS Java Web ADF. With version 9.3.1, the Web ADF libraries are located under ‘$ARCGISHOME/java/web/webcontrols/WEB-INF/lib’. The ESRI AgsJWS libaries include the following:
- arcgis_agsws_stubs.jar
- arcgis_ws_runtime.jar
The dependency libraries are in the same location on disk and include the following:
- activation.jar
- commons-codec-1.3.jar
- commons-httpclient-3.0.1.jar
- commons-logging-1.0.4.jar
- jaxb-api.jar
- jaxb-impl.jar
- jsr173_1.0_api.jar
You can create User Libraries in NetBeans and Eclipse to accelerate development with the AgsJWS API.
NetBeans v6.5.1
- From the tools menu, select Libraries to open the Library Manager.
- Click the ‘New Library…’ button to create a new Library and name it ‘AgsJWSv9.3.1′.
- Select a Library Type
- You should see your library added to the Library Type you selected in the previous step.
- With your new ‘AgsJWSv9.3.1′ library selected in the left hand Libraries pane, click the ‘Add JAR/Folder’ button.
- Navigate to the ‘$ARCGISHOME/java/web/webcontrols/WEB-INF/lib’ folder location.
- Select the ESRI AgsJWS libraries and dependency libraries described above and click ‘Add JAR/Folder’.
- Once you have all the libraries selected, click OK to close out of the dialog.
Now when you can add the library to an existing project by right clicking the project and selecting ‘Properties’. The Project Properties dialog opens where you can select Libraries from the list of Categories and click the ‘Add Library’ button to find the appropriate library to add.
Eclipse Ganymede (v3.4.x)
- From the Windows menu, select Preferences.
- Select Java > Build Path > User Libraries from the left hand pane.
- Click the ‘New’ button to create a new Library and name it ‘AgsJWSv9.3.1′.
- With your new library selected, click the ‘Add Jars’ button to open the Jar Selection dialog.
- Navigate to the ‘$ARCGISHOME/java/web/webcontrols/WEB-INF/lib’ folder location.
- Select the ESRI AgsJWS libraries and dependency libraries described above and click ‘Open’.
- You should now see all the libraries added with options to attach source and javadoc locations.
Now you can add the library to a new project or existing project by clicking the ‘Add Library’ in the New Project dialog and/or the Project Preferences dialog respectively. In Eclipse, your library is added to the ‘User Library’ category by default. Once you select User Library, you can add the appropriate library to your project.
For further reference please review the follow Help System topics:
Install Java Web ADF NetBeans Plug-in
Currently our documentation explains how to install our NetBeans Java Web ADF plug-ins by accessing a URL. The Java Web ADF SDK includes a local repository for our NetBeans plug-in modules which you can choose to install. Here is the process for installing from the local Java Web ADF SDK:
- Click ‘Tools->Plugins’ from the main menu of the IDE.
- In the Plugins window, select the ‘Downloaded’ tab.
- From the ‘Downloaded’ tab, click the ‘Add Plugins…’ button and browse to the following directory in the Java Web ADF SDK, ‘<AGSHOME>javatoolsnetbeans_plugin’.
- In the list of available plug-ins, check the ‘Install’ check box associated with your ArcGIS Java ADF plug-in. This will enable the ‘Install’ button.
- Click ‘Install’ and the NetBeans IDE installer window appears.
- Click ‘Next’ to confirm the ESRI ArcGIS Java ADF for NetBeans plug-in will be installed.
- Read and accept the terms of the license agreement displayed and click ‘Install’.
- After the installation completes successfully, click ‘Finish’ and restart the IDE.
On restart you should be able to opne the Plug-ins Dialog again and select the ‘Installed’ tab to see the list of installed plug-ins. If everything went successfully, you should see the ESRI Java Web ADF plug-ins listed under the ‘Web & Java EE’ category.
At this point you are ready to create your first ArcGIS Web Project.







