Fatal Error During Firmware Flash Using Eclipse in Ubuntu

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

Moderators: 99jonathan, roger, imaqine

Fatal Error During Firmware Flash Using Eclipse in Ubuntu

Postby chiques » Wed Feb 15, 2012 8:40 am

Eclipse Version: Indigo Service Release 1
Build id: 20110916-0149

Ubuntu Info:

Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric


My Enviroment Setup:
In /etc/bash.bashrc


JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
export JAVA_HOME

PATH=$PATH:$JAVA_HOME/bin
export PATH

LEJOS_NXT_JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
export LEJOS_NXT_JAVA_HOME

NXJ_HOME=/home/lejos_user/lejos_nxj
export NXJ_HOME

PATH=$NXJ_HOME/bin:$PATH
export PATH

CLASSPATH=/home/lejos_user/Documents/lejos_projects
export CLASSPATH

my ~.profile
export NXJ_HOME=/home/lejos_user/lejos_nxj
export LEJOS_HOME=$NXJ_HOME
export PATH=$PATH:$NXJ_HOME/bin
export CLASSPATH=$CLASSPATH:.:$NXJ_HOME/lib/classes.jar:$NXJ_HOME/lib/pccomm.jar:$NXJ_HOME/lib/jtools.jar:$NXJ_HOME/lib/pctools.jar


When I attempt to flash using the Eclipse toolbar I get the following error:
Image

Uploaded with ImageShack.us



Here's my enviroment:
Image

Uploaded with ImageShack.us









Problem:
When I try to flash my brick it gets stuck in SAMBA (soft continuous beeps) mode. At first it freaked me out and I thought my brick was really now a 'brick' but Eclipse on my Windows 7 Pro workstation is able to detect the brick and flash it.

Any ideas why I am unable to flash in Ubuntu
chiques
New User
 
Posts: 1
Joined: Wed Feb 08, 2012 8:48 pm

Re: Fatal Error During Firmware Flash Using Eclipse in Ubunt

Postby skoehler » Wed Feb 15, 2012 10:45 am

Please try to execute nxjflash (the command line version of our flashing tool) on the command line. It might uncover additional error messages.
The device is connected via USB? The udev rules are in place?
skoehler
leJOS Team Member
 
Posts: 1405
Joined: Thu Oct 30, 2008 4:54 pm

Re: Fatal Error During Firmware Flash Using Eclipse in Ubunt

Postby skoehler » Wed Feb 15, 2012 10:51 am

Some additional comments about your setup:

chiques wrote:My Enviroment Setup:
In /etc/bash.bashrc


JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
export JAVA_HOME

PATH=$PATH:$JAVA_HOME/bin
export PATH

LEJOS_NXT_JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
export LEJOS_NXT_JAVA_HOME

NXJ_HOME=/home/lejos_user/lejos_nxj
export NXJ_HOME

PATH=$NXJ_HOME/bin:$PATH
export PATH

CLASSPATH=/home/lejos_user/Documents/lejos_projects
export CLASSPATH


I believe JAVA_HOME is already set by ubuntu - you don't need to set it manually. You also don't need to add the JDK's bin directory to the path. AFAIK, that is default on ubuntu as well.
But what you certainly shouldn't do is setting the CLASSPATH variable.

Use this:
Code: Select all
export LEJOS_NXT_JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
export NXJ_HOME=/home/lejos_user/lejos_nxj
export PATH=$NXJ_HOME/bin:$PATH


chiques wrote:my ~.profile
export NXJ_HOME=/home/lejos_user/lejos_nxj
export LEJOS_HOME=$NXJ_HOME
export PATH=$PATH:$NXJ_HOME/bin
export CLASSPATH=$CLASSPATH:.:$NXJ_HOME/lib/classes.jar:$NXJ_HOME/lib/pccomm.jar:$NXJ_HOME/lib/jtools.jar:$NXJ_HOME/lib/pctools.jar


Some of those settings are redundant, since they are already set in /etc/bash.bashrc.
Also, don't set the CLASSPATH variable. The paths in the variable are wrong (in recent versions of leJOS, the classes.jar has moved to lib/nxt and the other JAR files have moved to lib/pc) and you're mixing NXT-side and PC-side JAR files and putting them all into one classpath. BAD idea!

Just remove those lines from ~/.profile
skoehler
leJOS Team Member
 
Posts: 1405
Joined: Thu Oct 30, 2008 4:54 pm


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 2 guests

more stuff