[Nxtcommand-developers] CLDC
Status: Beta
Brought to you by:
bbagnall
|
From: Brian B. <bba...@mt...> - 2006-11-22 17:51:06
|
Hi Stefano,
Just wondering how you are coming along with the CLDC code? Also, Vic
Wintriss wrote Sunday and was wondering what the timeline with the NetBeans
is.
- Brian
===
Brian:
Any word on getting iCommand working with NetBeans? My offer for the
sensors is still good.
Awhile back you said that you were coming out with a new release
soon. Status?
To do some of my own testing, I'd like to write a simple program that
calls on a method in NXTComm. I don't think I even get past open().
With this simple program:
package nxtbttest;
import icommand.nxtcomm.*;
import icommand.platform.nxt.*;
public class Main
{
public static void main(String[] args)
{
UltrasonicSensor us = new UltrasonicSensor(Sensor.S1);
}
}
I get the following when I try to run it:
init:
deps-jar:
Compiling 1 source file to /Users/vwpro/NxtBtTest/build/classes
compile:
run:
java.lang.Exception: NXTCOMM is not defined as a system Environment
Variable
NXTCOMM = null
at icommand.nxtcomm.NXTComm.open(NXTComm.java:46)
Error while connecting NXTCommand() constructor
at icommand.nxtcomm.NXTCommand.<clinit>(NXTCommand.java:16)
at icommand.platform.nxt.Sensor.setTypeAndMode(Sensor.java:32)
at icommand.platform.nxt.I2CSensor.<init>(I2CSensor.java:20)
at icommand.platform.nxt.UltrasonicSensor.<init>
(UltrasonicSensor.java:13)
at nxtbttest.Main.main(Main.java:10)
Exception in thread "main" java.lang.NullPointerException
at icommand.nxtcomm.NXTComm.sendData(NXTComm.java:105)
at icommand.nxtcomm.NXTCommand.sendRequest(NXTCommand.java:617)
at icommand.nxtcomm.NXTCommand.setInputMode(NXTCommand.java:
401)
at icommand.platform.nxt.Sensor.setTypeAndMode(Sensor.java:32)
at icommand.platform.nxt.I2CSensor.<init>(I2CSensor.java:20)
at icommand.platform.nxt.UltrasonicSensor.<init>
(UltrasonicSensor.java:13)
at nxtbttest.Main.main(Main.java:10)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
I paid Sun to trouble shoot it for me, but they gave up because there
was too much code behind the problem. Perhaps if I made it real
simple for them, they might be able to fix it.
Vic
|