COM port serial service test does not work for icommand 0.6

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

COM port serial service test does not work for icommand 0.6

Postby njolin » Sun Sep 09, 2007 5:23 am

On Windows XP I did step 2.1.1 to 2.3.1 from the icommand 0.6 readme file.

C:\Program Files\icommand\dist>java -jar icommand.jar
Exception in thread "main" java.lang.NoClassDefFoundError: icommand/Properties

The icommand.jar manifest.mf contains the following
Main-Class: icommand.Properties

There is no icommand.Properties class in the icommand.jar
njolin
New User
 
Posts: 3
Joined: Sun Sep 09, 2007 5:11 am

Postby bbagnall » Sun Sep 09, 2007 6:21 pm

Hi there,

Sorry for those somewhat convoluted instructions. I'm going to try and clean them up a bit for the next release.

If you are using Windows XP (not Toshiba) then you should just do 2.1.1 (1-4) and that's it. Once you do that you are done. You should not do anything with RXTX. i.e. Set your classpaths and you are basically ready to go.
User avatar
bbagnall
Site Admin
 
Posts: 392
Joined: Fri Aug 04, 2006 4:03 pm

Postby monkey525467 » Mon Oct 15, 2007 11:21 pm

I have tried to install icommand but something is wrong. I can send regular NXJ programs to my NXT, but not icommand.
The following is what I got then I tried to compile NXJTest.java
C:\java\icommand\icommand\samples>nxjc NXJTest.java
NXJTest.java:1: package icommand.nxt.comm does not exist
import icommand.nxt.comm.NXTCommand;
^
NXJTest.java:2: package icommand.nxt does not exist
import icommand.nxt.*;
^
NXJTest.java:6: cannot find symbol
symbol : variable NXTCommand
location: class NXJTest
NXTCommand.open();
^
NXJTest.java:7: cannot find symbol
symbol : variable NXTCommand
location: class NXJTest
NXTCommand.setVerify(true);
^
NXJTest.java:8: package Motor does not exist
Motor.B.setSpeed(700);
^
NXJTest.java:9: cannot find symbol
symbol : variable Battery
location: class NXJTest
System.out.println("Battery = " + Battery.getVoltageMilliVolt());
^
NXJTest.java:9: cannot find symbol
symbol : variable out
location: class java.lang.System
System.out.println("Battery = " + Battery.getVoltageMilliVolt());
^
NXJTest.java:10: cannot find symbol
symbol : variable out
location: class java.lang.System
System.out.println("Waiting for motor to stop");
^
NXJTest.java:11: package Motor does not exist
Motor.B.rotateTo(400);
^
NXJTest.java:12: cannot find symbol
symbol : variable out
location: class java.lang.System
System.out.println("Motor has stopped.");
^
NXJTest.java:13: package Motor does not exist
System.out.println("Motor tacho = " + Motor.B.getTachoCount());
^
NXJTest.java:13: cannot find symbol
symbol : variable out
location: class java.lang.System
System.out.println("Motor tacho = " + Motor.B.getTachoCount());
^
NXJTest.java:14: cannot find symbol
symbol : class LightSensor
location: class NXJTest
LightSensor ls = new LightSensor(SensorPort.S1);
^
NXJTest.java:14: cannot find symbol
symbol : class LightSensor
location: class NXJTest
LightSensor ls = new LightSensor(SensorPort.S1);
^
NXJTest.java:14: cannot find symbol
symbol : variable SensorPort
location: class NXJTest
LightSensor ls = new LightSensor(SensorPort.S1);
^
NXJTest.java:15: cannot find symbol
symbol : variable out
location: class java.lang.System
System.out.println("Light sensor Port 1: " + ls.getLightValue());
^
NXJTest.java:16: cannot find symbol
symbol : variable out
location: class java.lang.System
System.out.println("% Light Port 1: " + ls.getLightPercent());
^
NXJTest.java:17: cannot find symbol
symbol : variable out
location: class java.lang.System
System.out.println("Closing shop");
^
NXJTest.java:18: cannot find symbol
symbol : variable NXTCommand
location: class NXJTest
NXTCommand.close();
^
19 errors

I am a learning programmer in Java, and fluent in HTML.
We must not let technology overtake us; we must harness the power of it --Carson Shook
User avatar
monkey525467
New User
 
Posts: 21
Joined: Sun Jul 08, 2007 2:18 am

Postby bbagnall » Sat Oct 20, 2007 6:09 pm

Hi Monkey,

You are having some confusion with leJOS NXJ and iCommand.

leJOS NXJ code runs on your NXT brick only and is compiled using NXJC. You did this part fine, according to what you said.

iCommand code runs on your PC and is compiled *only* with the JAVAC program in the standard Java SDK. Do not try to compile iCommand code using NXJC. Once the iCommand code is compiled, run it on your PC like a standard Java program using the JAVA executable.
User avatar
bbagnall
Site Admin
 
Posts: 392
Joined: Fri Aug 04, 2006 4:03 pm


Return to NXJ Software

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests

more stuff