HOWTO: Install Lejos 0.9 on Ubuntu 11.10 (Oneiric)

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

Moderators: roger, imaqine, 99jonathan

bullestock
New User
Posts: 14
Joined: Fri Mar 04, 2011 9:52 pm

HOWTO: Install Lejos 0.9 on Ubuntu 11.10 (Oneiric)

Postby bullestock » Fri Nov 11, 2011 11:32 pm

I thought I would contribute this step-by-step guide to installing on Ubuntu:

1) Install Java as described here: http://www.webupd8.org/2011/09/how-to-install-oracle-java-7-jdk-in.html

2) Edit your .profile and add:

Code: Select all

export LEJOS_NXT_JAVA_HOME=/usr/lib/jvm/java-7-oracle
export NXJ_HOME=/opt/lejos_nxj


3) Install prerequisite packages:

Code: Select all

sudo apt-get install libusb-dev
sudo apt-get install ant


4) Do udev setup:

Code: Select all

sudo addgroup lego
sudo usermod -a -G lego <your login>


Create /etc/udev/rules.d/lego-mindstorms-nxt.rules:

Code: Select all

BUS=="usb", SYSFS{idVendor}=="03eb", GROUP="lego", MODE="0660"
BUS=="usb", SYSFS{idVendor}=="0694", GROUP="lego", MODE="0660"


5) Extract LeJOS tar file into /opt/lejos_nxj

6) Build LeJOS:

Code: Select all

cd /opt/lejos_nxj/build
ant

7) Flash the firmware into your NXT (see http://lejos.sourceforge.net/nxt/nxj/tutorial/Preliminaries/GettingStartedLinux.htm)

s.frings
Active User
Posts: 131
Joined: Tue Jul 20, 2010 2:01 pm

Re: HOWTO: Install Lejos 0.9 on Ubuntu 11.10 (Oneiric)

Postby s.frings » Sat Nov 12, 2011 6:10 pm

If you have a Bluetooth interface, all the USB related configuration is optional. Bluetooth also works fine with 64bit java, which is not the case with USB.

skoehler
leJOS Team Member
Posts: 1530
Joined: Thu Oct 30, 2008 4:54 pm

Re: HOWTO: Install Lejos 0.9 on Ubuntu 11.10 (Oneiric)

Postby skoehler » Sat Nov 12, 2011 6:30 pm

s.frings wrote:If you have a Bluetooth interface, all the USB related configuration is optional. Bluetooth also works fine with 64bit java, which is not the case with USB.


Both bluetooth and USB works on 32Bit and 64Bit Linux without any problems. If USB does not work for you on 64BIt, please us know what errors you're seeing.

bullestock
New User
Posts: 14
Joined: Fri Mar 04, 2011 9:52 pm

Re: HOWTO: Install Lejos 0.9 on Ubuntu 11.10 (Oneiric)

Postby bullestock » Sun Nov 13, 2011 1:10 am

s.frings wrote:If you have a Bluetooth interface, all the USB related configuration is optional. Bluetooth also works fine with 64bit java, which is not the case with USB.

Not true - I use 64-bit Java, and USB works just fine.

s.frings
Active User
Posts: 131
Joined: Tue Jul 20, 2010 2:01 pm

Re: HOWTO: Install Lejos 0.9 on Ubuntu 11.10 (Oneiric)

Postby s.frings » Sun Nov 13, 2011 11:18 am

Good to read that. Thanks for the correction.

Davidbrcz
New User
Posts: 2
Joined: Mon Jan 30, 2012 4:35 pm

Re: HOWTO: Install Lejos 0.9 on Ubuntu 11.10 (Oneiric)

Postby Davidbrcz » Mon Jan 30, 2012 4:38 pm

Hello guys !

I'm a noob with lego NXT but I would like to thank a lot bullestock who saved me from compiling my project under Windows.
I don't know how close are the forum and the website but it might be great to add a link to this topic on that page
French student in Supaero. See more there : http://www.isae.fr/en/isae_training_offer2/supaero_graduate_engineer.html


Return to “NXJ Software”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest