Dashboard > NLJUG SunSPOT > Home > Hints and Tips
Hints and Tips
Added by Klaasjan Tukker, last edited by Klaasjan Tukker on 18 Nov 2007  (view change)
Labels: 
(None)


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:

  1. Rightclick on the project in the "Projects tab"
  2. Choose "properties"
  3. Choose "Java Sources Classpath"
  4. Click "Add Jar/Folder"
  5. Select the "multihoplib_rt.jar" in the folder <sdkdir>lib\
    For example: c:\java\SunSPOT\purple\lib\multihop_rt.jar
  6. Click "Open" and "Ok"
  7. 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\

Are you enjoying Confluence? Please consider purchasing it today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.2 Build:#516 31 May 2006) - Bug/feature request - Contact Administrators