Netbeans Instructions
It can happen that Netbeans complains about missing packages once you opened the project:
import com.sun.spot.io.j2me.radiostream.*; import com.sun.spot.io.j2me.radiogram.*;
This can be solved by adding the jar:
<sdkdir>lib\multihoplib_rt.jar
to the project classpath:
- Rightclick on the project in the "Projects tab"
- Choose "properties"
- Choose "Java Sources Classpath"
- Click "Add Jar/Folder"
- Select the "multihoplib_rt.jar" in the folder <sdkdir>lib\
For example: c:\java\SunSPOT\purple\lib\multihop_rt.jar - Click "Open" and "Ok"
- The error lines should disappear
It could be wise to modify the base application template in:
<sdkdir>\Demos\CodeSamples\SunSpotApplicationTemplate
This directory can be copied for each new SunSPOT application to be developed
Developing a new application
Copy the Code template from to a new project location
<sdkdir>\Demos\CodeSamples\SunSpotApplicationTemplate to <projectsdir>\MySampleSPOTApplicaion\