Sun Microsystems V2.0 manual Total time 4 seconds \MyApplication

Page 10

[exec] [Adding property key: MIDlet-Vendor value: Sun Microsystems Inc]

[exec] [Adding property key: MIDlet-1 value: Spottests,, squawk.application.Startup]

[exec] [Adding property key: MIDlet-2 value: TestMIDlet label,, com.sun.spot.TestIMlet]

[exec] [Adding property key: MicroEdition-Profile value: IMP-1.0]

[exec] [Adding property key: MicroEdition-Configuration value: CLDC-1.1]

[exec] [Including resource: res1.txt]

[exec] Created suite and wrote it into image.suite

[exec] --------------------------------------------------------------------

[exec] Hits - Class:98.07% Monitor:88.74% Exit:100.00% New:98.68%

[exec] GCs: 3 full, 0 partial

[exec] ** VM stopped: exit code = 0 **

[move] Moving 1 file to C:\MyApplication\suite

[move] Moving 1 file to C:\MyApplication\suite

[delete] Deleting: C:\MyApplication\image.suite.api

-post-suite:

-pre-deploy:

-do-deploy:

-run-spotclient-with-optional-remoteId:

-run-spotclient-with-script-contents:

-run-spotclient:

[java] Waiting for target to synchronise...

[java] (please reset SPOT if you don't get a prompt)

[java] [waiting for reset]

[java] Sun SPOT bootloader (1321-20060816)

[java] SPOT serial number = 0014.4F01.0000.012E

[java] About to flash to slot 1

[java] Writing imageapp35015.bintemp(2065 bytes) to COM45

[java] .................

[java] Download operation completed successfully

[java] Writing Configuration(1080 bytes) to COM45

[java] .........

[java] Download operation completed successfully

[java] Exiting

[delete] Deleting: C:\SunSPOT\dev\temp\spot-temp-472249501

-post-deploy:

jar-deploy:

BUILD SUCCESSFUL

Total time: 4 seconds

C:\MyApplication>

If this step fails, this is most likely to be because your system does not know the location of the JavaVM. You can find out how to configure your system by running the following ant command and following the instructions given in the output.

C:\MyApplication>ant environment

Buildfile: build.xml

-pre-init:

-init-user:

-init-system:

10

Image 10
Contents Page Page Contents Http protocol support Introduction Building and deploying Sun Spot applications Deploying and running a sample applicationBuild Successful Total time 3 seconds \MyApplication Ant -Dport=COM2 info Total time 4 seconds \MyApplication Total time 0 seconds \MyApplication Deploying a pre-existing jar Incorporating utility classes into your applicationExcluding 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 Take suitable actions during over-the-air downloads Using short names for SPOTsManaging keys and sharing Sun SPOTs BackgroundChanging the owner of a Sun Spot Sharing Sun SPOTsGenerating a new key-pair What is protected?Deploying and running a host application LimitationsIncorporating pre-existing jars into your host application Configuring network featuresYour own host application Mesh routingTrace route Hardware configurations and USB powerLogging Page Threads Overview of an applicationThread priorities Sun Spot device library Sun Spot device librariesDevice Interface Persistent properties Accessing flash memory Overriding the Ieee addressUsart Radio communication library Program Radiogram protocol Client end Server 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 Activating deep sleep mode Deep SleepDeep sleep behaviour of the standard drivers USB inhibits deep sleepPreconditions for deep sleeping Device Condition to permit deep sleepWriting a device driver Configuring the http protocol Http protocol supportConfiguring projects in an IDE Socket Proxy GUI modeJavadoc/source configuration Classpath configurationDebugging Ant selectapplication Configuring NetBeans as a debug client Configuring Eclipse as a debug clientUsing library suites Advanced topicsWith 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 Memory usage Contents of the arm directoryContents of the lib directory Start address Space UseContents of the bin directory preverify.exe Contents of the upgrade directory Contents of the tests directory