18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BUILDING A COMMAND-LINE JAVA APPLICATION<br />

If your build returns the following:<br />

Buildfile: build.xml<br />

init:<br />

validate-engine:<br />

compile:<br />

execute:<br />

[java] Tin to Point: <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> Sample<br />

[java] java.lang.StringIndexOutOfBoundsException: String index out of<br />

range: -1<br />

[java] at java.lang.String.substring(String.java:1444)<br />

[java] at engine.scenario.analyst3d.TintoPoint.main(Unknown Source)<br />

[java] Exception in thread "main"<br />

BUILD FAILED<br />

file:Q:/dop/dev/ant/projects/engine.scenario/build.xml:53: Java returned: 1<br />

Total time: 1 second<br />

then your source code has compiled, but you have not provided valid variable<br />

strings representing your data paths. Ensure that you have provided data paths in<br />

the following format:<br />

• C:\\data\\imagery\\tin\\bachtin<br />

• C:\\data\\workspace\\newshp.shp<br />

ADDITIONAL RESOURCES<br />

The following resources may help you understand and apply the concepts and<br />

techniques presented in this scenario.<br />

• Additional documentation available in the <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> Kit<br />

including <strong>ArcGIS</strong> <strong>Developer</strong> Help, component help, object model diagrams,<br />

and samples to help you get started.<br />

• <strong>ArcGIS</strong> <strong>Developer</strong> Online—Web site providing the most up-to-date information<br />

for <strong>ArcGIS</strong> developers including updated samples and technical documents.<br />

Go to http://arcgisdeveloperonline.esri.com.<br />

• ESRI online discussion forums—Web sites providing invaluable assistance<br />

from other <strong>ArcGIS</strong> developers. Go to http://support.esri.com and click the User<br />

Forums tab.<br />

Java enjoys a huge community with many resources for its developers. The following<br />

is a list of URLs that most developers keep in their toolkit. These links,<br />

while correct at publication, are subject to change.<br />

• Sun’s Java and JDK FAQ (http://java.sun.com/products/jdk/faq.html)—Highlevel<br />

introductory FAQs about Java.<br />

• Sun’s Java (http://java.sun.com/)—The source for Java technology.<br />

• Sun’s Java Tutorial (http://java.sun.com/docs/books/tutorials)—Online version<br />

of the book from Addison–Wesley. Learning all about Java.<br />

• Thinking in Java (http://www.mindview.net/Books/TIJ)—Online version of the<br />

book from Prentice Hall. Very good for learning about object-oriented programming<br />

concepts in Java.<br />

Chapter 6 • <strong>Developer</strong> scenarios • 425

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!