Problem with SpeechSynthesis on P.463 of the book

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

Moderators: imaqine, 99jonathan, roger

New User
Posts: 5
Joined: Mon Jul 02, 2007 10:32 pm

Problem with SpeechSynthesis on P.463 of the book

Postby muimui » Wed Jul 18, 2007 7:53 pm

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 ";, 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.
Please help!

User avatar
Site Admin
Posts: 392
Joined: Fri Aug 04, 2006 4:03 pm

Postby bbagnall » Thu Jul 19, 2007 5:26 pm

Hi there. Now that the new leJOS NXJ is released we're going to do another release of iCommand that has all the updated commands, including open(). I think it's been at least 5 months since we updated iCommand so of course it is behind. I'm going to try to get the iCommand release out within a week and that will solve your problems.

Return to “NXJ Software”

Who is online

Users browsing this forum: No registered users and 4 guests