Firmware Download Problems

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

Moderator: roger

Firmware Download Problems

Postby hopabonk » Mon Apr 16, 2007 1:24 pm

I am unable to download my lejos firmware to my rcx. When I type firmdl.bat at the command prompt I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: Files\lejos/3/0/0-RC2-win32\3rdparty\lib\common-cli-1/0/jar;C:\Program Files\lejos/3/0/0-RC2-win32\lib\pcrcxcom/jar

My lejos application files are in C:\Program Files\lejos.3.0.0-RC2-win32
I called firmdl.bat from C:\Program Files\lejos/3/0/0-RC2-win32/bin\
I know very little about java.
I am following insructions from the web tutorial "Your irst brick of lejos" and supplemented with instructions from the book "Core Lego Mindstorms Programming."

At first I thought my problems were with my environmental variables and I spent a lot of time going through those, but now I see that these problems seem to be in the \3rdparty and \lib directories and I don't know what those are for or how they are used or why they might not be accessible or working.

Thanks for your help.

Dave
hopabonk
New User
 
Posts: 1
Joined: Mon Apr 16, 2007 12:01 pm

Postby hok » Wed Aug 08, 2007 8:21 pm

This IS obviously a problem with your classpath.

I had the same problem when my classpath contained Program Files.

The space between Program and Files causes the command line to take only the first part (C:\Program) as the class path, and what follows (Files\lejos...) as the class to execute.

Which doesn't work.

Try quoting the path elements

(like "C:\Program Files\lejos/3/0/0-RC2-win32\3rdparty\lib\common-cli-1/0/jar")

or put lejos into a path without spaces.
hok
New User
 
Posts: 2
Joined: Wed Aug 08, 2007 8:08 pm

Postby jvance » Wed Sep 12, 2007 1:09 am

Also make sure there is a . in your CLASSPATH
For instance my classpath is
.;"i\QTJava.zip";.;C:\;C:\Sun\Java\jre1.6.0_02\lib\ext\QTJava.zip
^
Notice the . in the CLASSPATH. Make sure there is one. Or you can set the claspath with
set CLASSPATH=.
Hope is helps.
V
jvance
New User
 
Posts: 22
Joined: Sun Aug 12, 2007 2:22 am

Postby ravl » Mon Nov 19, 2007 1:27 am

Hello. I'm having trouble downloading the firmware to the RCX. I installed Lejos on my Debian machine.

Code: Select all
$ lejosfirmdl --tty=usb
Use --help for options.
segment.length[0] = 13692 (14k)
segment.length[1] = 2940 (3k)
Total image size=16632 (17k)
write: Resource temporarily unavailable


I also set RCXTTY to the node that my kernel creates for the IR tower /dev/usb/legousbtower0 and I get this:

Code: Select all
$ lejosfirmdl
Use --help for options.
segment.length[0] = 13692 (14k)
segment.length[1] = 2940 (3k)
Total image size=16632 (17k)
/dev/usb/legousbtower0: not a tty



The light on the tower even flashes on, but it's not working. Any help would be very appreciated.
ravl
New User
 
Posts: 3
Joined: Fri Nov 16, 2007 1:54 am


Return to RCX Software

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff