Fail on nxjupload

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

Moderators: imaqine, 99jonathan, roger

New User
Posts: 1
Joined: Wed May 17, 2017 7:14 pm

Fail on nxjupload

Postby magi » Wed May 17, 2017 7:20 pm

Hi there,

I'm trying to upload a file on the brick with linux, but when I executed th following command:

Code: Select all

nxjupload example.nxj

It returns

Code: Select all

Found NXT: NXT 0016530E9D34

and it doesn't do anything for 30 seconds, and when it finish i get the following error:

Code: Select all

Got exception during close: Error in write Error in write
   at lejos.pc.comm.NXTCommUSB.rawWrite(
   at lejos.pc.comm.NXTCommUSB.flushBuffer(
   at lejos.pc.comm.NXTCommUSB.write(
   at lejos.pc.comm.NXTCommUSB.sendRequest(
   at lejos.nxt.remote.NXTCommand.openWrite(
   at lejos.nxt.remote.NXTCommand.uploadFile(
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
   at java.lang.reflect.Method.invoke(

I have this enviorment variables:

Code: Select all

export NXJ_HOME="opt/lejos"
   export LEJOS_NXT_JAVA_HOME="usr/lib/jvm/jdk1.6.0_45


User avatar
leJOS Team Member
Posts: 6001
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Fail on nxjupload

Postby gloomyandy » Wed May 17, 2017 7:50 pm

Sorry I can't really help very much. I no longer really use the NXT. A number of people have had issues with using the NXT and Linux via USB. See for instance:

Unfortunately none of them have bothered to update the threads either with a solution or further details. All I can suggest is that you try the steps suggested in the other threads. In particular avoid USB 3 ports and perhaps try a different OS or older hardware. I suspect that changes to hardware and OS software mean that the NXT leJOS USB support is no longer compatible but other than that can't really help.
leJOS news

Return to “NXJ Software”

Who is online

Users browsing this forum: No registered users and 6 guests