In your ant build, <jvmarg value="-Dnxj.home=${nxj.home}" /> is missing when NXJUpload is invoked. Hence, the nxj.properties file is not found which tells the classes to load the Fantom driver based pccomms, which is actually for windows only.

I don't think this was the reason since the error occured while I was checking the new install by compiling and running some of the samples included in the distribution. Their build.xml are correct (of course ) and include the option you mentionned.

Maybe it was a Gremlins hidden somewhere, since the last try I made after reading your post worked. The only difference from previous attempts is that I unpluged the BT dongle before, and the PC has been turned off while not using it (energy saving ).

I'm going now to remove the dust accumulated on my projects and update them to conform the new organisation of libs.

I've got news: we don't ship the nxj.properties file in the bin folder anymore. However, somehow leJOS must have though that it is running OS X or Windows, since those are the platforms for which leJOS tries to use the fantom driver. On Linux, it should use jlibnxt which is a JNI wrapper for libusb-based access.

I was suspecting this OS related point, since as far as I knew, fantom was not for Linux. It seems that the right OS is detected now.

With respect to jlibnxt I'd put it (in fact a symbolic link to the one in lib/pc/native/linux/x86) in the lejos_home/bin folder after having run the related build to generate it. Before doing so, an other error was reported, pointing the missing lib.

I take the opportunity to ask some question about the sample build provided in the sample projects. The section :

seems to set the d32Flag depending on if MacOS being detected or not Since I'm working for Linux only, I was wandering if I can simply remove all the usages of d32Flag in the rest of the build. I've noted that in case the build is not executed on MacOS, this property is set to "-Dblank.dummy.arg=" and adds the corresponding define as JVM argument. Is this required, or can I just remove all jvmarg tags referencing d32Flag ? I'm not an Ant wizard (far from it), but why is it needed to define this "else" clause, and why isn't it just omitted, since d32flag will then just be unset ? Maybe the resulting jmvarg would be invalid in this case ?

epascual wrote:With respect to jlibnxt I'd put it (in fact a symbolic link to the one in lib/pc/native/linux/x86) in the lejos_home/bin folder after having run the related build to generate it. Before doing so, an other error was reported, pointing the missing lib.

You should not create that symbolic link. The native library is supposed to be loaded from lib/pc/native/linux/x86. It has been loaded form lejos_home/bin in former versions of leJOS. Do you have mixed an old version of leJOS with a new one? There should be no JAR files in lejos_home/lib - only int the subfolders lib/pc and lib/nxt - and the native library should be loaded successfully from lib/pc/native/linux/x86. I'd like to see the error message if leJOS doesn't work for you without that symlink you created.

epascual wrote:I take the opportunity to ask some question about the sample build provided in the sample projects. The section :

seems to set the d32Flag depending on if MacOS being detected or not Since I'm working for Linux only, I was wandering if I can simply remove all the usages of d32Flag in the rest of the build. I've noted that in case the build is not executed on MacOS, this property is set to "-Dblank.dummy.arg=" and adds the corresponding define as JVM argument. Is this required, or can I just remove all jvmarg tags referencing d32Flag ? I'm not an Ant wizard (far from it), but why is it needed to define this "else" clause, and why isn't it just omitted, since d32flag will then just be unset ? Maybe the resulting jmvarg would be invalid in this case ?

You can't omit an argument in ant. The else-case is to workaround the pure architecture of ant. If we wouldn't use "-Dblank.dummy.arg=", then the java command would see and empty argument "" which will cause trouble.

I am going through several problems installing Lejos on Linux...I have tried with Lejos 0.9.1 and 0.8.5 and openjdk 6, the problems is that when i connect the NXT and tried to flash firmware an error comes out at 96% advising that there is no nxt connected. This happens to me with 2 different computers so I have to be doing something grong...

Can you manually put the NXT in firmware update mode (it is clicking) and connect it to USB. Then please post the output of nxjflash. Please use leJOS 0.9.1 since older version have problems with recent Linux kernels.