Sun Microsystems V2.0 manual Build Successful

Page 7

[delete] Deleting directory C:\MyApplication\build

[delete] Deleting directory C:\MyApplication\suite

[delete] Deleting directory C:\MyApplication\j2meclasses

-post-clean:

clean:

-pre-compile:

-do-compile:

[mkdir] Created dir: C:\MyApplication\build

[javac] Compiling 1 source file to C:\MyApplication\build

-post-compile:

compile:

-pre-preverify:

-make-preverify-directory:

[mkdir] Created dir: C:\MyApplication\j2meclasses

-unjar-utility-jars:

-do-preverify:

-post-preverify:

preverify:

-pre-jar-app:

-find-manifest:

-do-jar-app:

[mkdir] Created dir: C:\MyApplication\suite

[jar] Building jar: C:\MyApplication\suite\imlet.jar

-post-jar-app:

jar-app:

BUILD SUCCESSFUL

Total time: 1 second

C:\MyApplication>

If you have any problems with this step you need to ensure your Java JDK and Ant distributions are properly installed, as per the instructions in the Installation Guide.

3.Connect the Sun SPOT to your desktop machine using a mini-USB cable.

4.Check communication with your Sun SPOT using the “ant info” command, which displays information about the device.

C:\MyApplication>ant info

Buildfile: build.xml

-pre-init:

-init-user:

-init-system:

-do-init:

7

Image 7
Contents Page Page Contents Http protocol support Introduction Deploying and running a sample application Building and deploying Sun Spot applicationsBuild Successful Total time 3 seconds \MyApplication Ant -Dport=COM2 info Total time 4 seconds \MyApplication Total time 0 seconds \MyApplication Incorporating utility classes into your application Deploying a pre-existing jarExcluding files from the compilation Manifest and resourcesOther user properties Built-in properties Using the BasestationOverview Set up Remote operation Base Station configurationIntroduction Connect a Sun Spot base station Background Using short names for SPOTsManaging keys and sharing Sun SPOTs Take suitable actions during over-the-air downloadsSharing Sun SPOTs Changing the owner of a Sun SpotLimitations What is protected?Deploying and running a host application Generating a new key-pairMesh routing Configuring network featuresYour own host application Incorporating pre-existing jars into your host applicationTrace route Hardware configurations and USB powerLogging Page Threads Overview of an applicationThread priorities Sun Spot device library Sun Spot device librariesDevice Interface Persistent properties Overriding the Ieee address Accessing flash memoryUsart Radio communication library Program Radiogram protocol Server end Client endYou can open server radiogram connections in a similar way Broadcasting Radio properties Turning the receiver off and on Monitoring radio activity Conserving power using deep sleep modeShallow Sleep Deep Sleep Activating deep sleep modeDevice Condition to permit deep sleep USB inhibits deep sleepPreconditions for deep sleeping Deep sleep behaviour of the standard driversWriting a device driver Http protocol support Configuring the http protocolSocket Proxy GUI mode Configuring projects in an IDEJavadoc/source configuration Classpath configurationDebugging Ant selectapplication Configuring Eclipse as a debug client Configuring NetBeans as a debug clientAdvanced topics Using library suitesWith adderlib as your current directory, execute the command Use the command Using the spot client SpotSerialPortException other exception in serial port comms Persistent system properties ReferenceProperty name Meaning Start address Space Use Contents of the arm directoryContents of the lib directory Memory usageContents of the bin directory preverify.exe Contents of the tests directory Contents of the upgrade directory