1. Should the first import statement be changed to "import icommand.nxtcomm.*;"
2. There is no "open" method defined in the NXTCommand class.
After making change to the import statement and commented the line "NXTCommand.open();, I am able to compile the program and run the program now. However, it gave the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
I have already set up the RXTX.jar file in the classpath setting according to the readme file and actually I was also able to run the sample program "RemoteControl" last night rotating the motors remotely from the same laptop computer.
I don't know why I have this error again with this program.