Sun Microsystems V2.0 Welding System User Manual


 
9
or
ant –Dport=COM2 info
The difference between these two commands is that the “
spotport
” version will check that there
is a Sun SPOT connected to the specified port, whereas the “
port
” version will attempt to
connect to a Sun SPOT on the specified port regardless. You should normally use the
spotport
” version. If you prefer, you may specify the port in the
build.properties
file of the
application:
spotport=COM2
or
port=COM2
On Unix-based systems, including Mac OS X, if you see an
UnsatisfiedLinkError
exception,
this means that you need to create a spool directory for the communications driver RXTX to
use, as locks are places in that directory. See the section notes on the RXTX driver in the
Installation Guide for guidance on how to set up your spool directory.
5. To deploy the example application, use the “
ant jar-deploy
” command.
C:\MyApplication>ant jar-deploy
Buildfile: build.xml
-pre-init:
-init-user:
-init-system:
-do-init:
-post-init:
init:
-set-jar-name:
-check-for-jar:
-override-warning-find-spots:
-main-find-spots:
[echo] Using Sun SPOT device on port COM45
-do-find-spots:
-pre-suite:
-do-suite:
[exec] [loaded object memory from
'file://C:/SunSPOT/dev/lib/translator.suite']
[exec] [loaded object memory from
'file://C:/SunSPOT/dev/arm/transducerlib.suite']
[exec] [Loaded squawk.imlet.Startup]
[exec] [Including resource: META-INF/MANIFEST.MF]
[exec] [Adding property key: Manifest-Version value: 1.0]
[exec] [Adding property key: Ant-Version value: Apache Ant 1.6.5]
[exec] [Adding property key: Created-By value: 1.5.0_06-b05 (Sun Microsystems
Inc.)]
[exec] [Adding property key: MIDlet-Name value: Test]
[exec] [Adding property key: MIDlet-Version value: 1.0.0]