Lejos and linux

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

Moderators: roger, 99jonathan, imaqine

Lejos and linux

Postby pcProfie » Mon Sep 03, 2012 3:50 pm

hi
i want to try to install lejos on linux, but i've got some problems:
i use this instruction http://lejos.sourceforge.net/nxt/nxj/tu ... dLinux.htm
here are my questions:
1. how to install the driver? i don't understand the xxx and yyy. do know a better instruction?
2. i used windows everytime, but ubuntu is new for me. how can i set the path on ubuntu?
3. i tried to install lejos and... if i compile a program with import lejos.nxt.*; there's no exception.
if i want to transfer it to my robot he can't find any files: no flash, no usb-transfering...
but nxtflashg is available and i can run it from file but not from bluej or eclipse

what should i do???

java bluej and eclipse are correctly installed (i hope) AND thats not a normal linux: it's booted from an usb-device (installed with linux live usb creator)
pcProfie
New User
 
Posts: 11
Joined: Thu Aug 02, 2012 4:18 pm

Re: Lejos and linux

Postby skoehler » Sat Sep 22, 2012 2:03 pm

pcProfie wrote:hi
i want to try to install lejos on linux, but i've got some problems:
i use this instruction http://lejos.sourceforge.net/nxt/nxj/tu ... dLinux.htm
here are my questions:
1. how to install the driver? i don't understand the xxx and yyy. do know a better instruction?

Observe how the contents of /dev/bus/usb/ change when you unplug the NXT and plug it in again. It should tell you, which xxx/yyy belongs to your NXT. However, using the udev rules is much better anyways.

pcProfie wrote:2. i used windows everytime, but ubuntu is new for me. how can i set the path on ubuntu?


You need to edit your ~/.bashrc, ~/.bash_profile or ~/.profile. I'm not sure, which one it is right now.
If you want to install leJOS for all users on your system, you need to edit some other files in /etc

Typically, you will add some line like
export PATH=$PATH:/path/to/leJOS/bin

pcProfie wrote:3. i tried to install lejos and... if i compile a program with import lejos.nxt.*; there's no exception.
if i want to transfer it to my robot he can't find any files: no flash, no usb-transfering...


Post the complete output of nxjupload.

pcProfie wrote: but nxtflashg is available and i can run it from file but not from bluej or eclipse


Use Eclipse, not bluej. Install the leJOS plug-in for Eclipse. Post the complete output of an attempt to upload (you find it in the console view, which should popup automatically upon on error). Additional details can be found in the Error View of Eclipse. Post those as well.

Regards,
Sven
skoehler
leJOS Team Member
 
Posts: 1110
Joined: Thu Oct 30, 2008 4:54 pm


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff