Hi Vic,
Sorry for the delay. I've had a busy and maddening week.
> Any word on getting iCommand working with NetBeans? My offer for the
> sensors is still good.
We're still coming to grips with NetBeans. At first we thought you wanted
some special classes to work with NetBeans that were like JavaBeans, but I'm
starting to think you just want iCommand to work in an IDE called NetBeans?
> Awhile back you said that you were coming out with a new release soon.
> Status?
That was version 0.5, released October 30:
www.lejos.org
> 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)
It's best to use the code samples in the samples directory rather than
trying to interact with the low-level NXTComm class. The sample code shows
the common ways to use iCommand.
That aside, I can see from the output that the environment variable NXTCOMM
is not set to the COM port your Macintosh is using for serial Bluetooth. The
readme file has some important information on this in section 2.2.2. I'm not
very happy with the organization of the readme but it's all we have at the
moment.
- Brian
> 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
>
>
> On Nov 12, 2006, at 8:03 PM, Brian Bagnall wrote:
>
>> Hi Vic,
>>
>> Your message (and all other messages you send) was posted to the
>> developer list. Stefano Sanna said he would be interested in developing
>> the NetBeans but I don't think he's going to do anything until next
>> week. We'll let you know when we have something to test out.
>>
>> - Brian
>>
>> ----- Original Message ----- From: "Vic Wintriss" <gv...@sa...>
>> To: "Brian Bagnall" <bba...@mt...>
>> Sent: Sunday, November 12, 2006 8:59 PM
>> Subject: Re: iCommand Netbeans
>>
>>
>>> Brian:
>>>
>>> Any progress?
>>>
>>> I sent the info to the address below.
>>>
>>> Vic
>>>
>>> On Nov 8, 2006, at 8:22 AM, Brian Bagnall wrote:
>>>
>>>> Hi Mr. Wintriss,
>>>>
>>>> One of our developers Stefano Sanna is interested in adding Netbean
>>>> functionality to iCommand. Can you please give us some more details
>>>> about what you want done with Netbeans?
>>>>
>>>> BTW: Please reply to nxt...@li... so
>>>> all the developers are in the loop.
>>>>
>>>> - Brian
>
|