USB communication with PC

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

Moderators: roger, imaqine, 99jonathan

New User
Posts: 14
Joined: Wed Jan 09, 2008 9:55 pm

USB communication with PC

Postby DeQiu » Thu Jan 17, 2008 7:07 pm

when i run program USBSend sample on my PC i got message:

error: Class names, 'usbsend' , are only accepted if annotation processing is explicity requested

I think i have to do something with library lejos.pc.comm. on my PC. What should i do step by step ?

leJOS Team Member
Posts: 965
Joined: Mon Feb 05, 2007 1:27 pm

Postby lawrie » Sat Jan 19, 2008 9:00 pm

I think you get that message if you do:

javac USBSend

instead of


To compile and run USBSend:

1. Check you have NXJ_HOME set up and %NXJ_HOME%\bin on your PATH. If leJOS is working this should be OK.

2. Set up the CLASSPATH

set CLASSPATH=%NXJ_HOME%\pccomm,jar;.

3. Run it:

java USBSend

New User
Posts: 14
Joined: Wed Jan 09, 2008 9:55 pm

Postby DeQiu » Mon Jan 28, 2008 7:25 pm

Ups... I was a fool. exactly...I forgot to write an extension of the file USBSend :)
Thank you very much for all hints! Second step was exactly about what I wanted to ask.
Sending greetings :)

Return to “NXJ Software”

Who is online

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