1. install the 'Mac OS 10.5 (Leopard) Firmware Fix' from here: http://mindstorms.lego.com/support/updates/
2. download LeJOS 0.85 from http://lejos.sourceforge.net
3. extract your zip file to where ever you want, personally I put it in my user library.
- Code: Select all
/Users/yourusername/Library/
4. set up the correct parameters through terminal
- Code: Select all
sudo pico ~/.bash_profile
in this window enter these variables
- Code: Select all
cd /Users/yourusername/Library/lejos_nxj
LEJOS_HOME=`pwd`
NXJ_HOME="$LEJOS_HOME"
PATH="$LEJOS_HOME/bin:$PATH"
export LEJOS_HOME NXJ_HOME
export PATH
- Code: Select all
CTRL+O
- Code: Select all
CTRL+X
You'll have to logout/reboot to get these variable to load, but you don't have to do this yet
5. Set the right permission for your LeJOS content
- Code: Select all
chmod -R 755 ~/lejos_nxj/
6. "Install" the fantom USB driver
- Code: Select all
pico /Users/yourusername/Library/lejos_nxj/bin/nxj.properties
Then enter this parameter:
- Code: Select all
NXTCommUSB=lejos.pc.comm.NXTCommFantom
Make sure to have NO spaces between "=" and after the sentence!
7. If you have Snow Leopard go to
/Applications/Utilities/Java\ Preferences

and put your java 32 bit ahead of the 64 bit

Sorry about the language in these screenshots, but you should be able to understand it just by the icons
Try it out by typing while the brick is plugged in and turned on:
- Code: Select all
nxjbrowse -u
Great thanks to:
http://tucsontechnics.blogspot.com/2009 ... river.html
viewtopic.php?t=1186&start=0
http://tucsontechnics.blogspot.com/2009 ... k-pro.html
And not to forget, my student advicor in Norway!
If I've forgot anything, please ask, but in my memory, this was all that I did to get this to work.
---------------------------------------------
To compile project enter
- Code: Select all
nxjc myProject.java
To transfer the project to the NXT brick
- Code: Select all
nxj myProject

