Lejos on lion osx

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

Moderators: 99jonathan, roger, imaqine

Lejos on lion osx

Postby ojtwist » Tue Oct 11, 2011 10:32 am

Hello

I have lion osx installed on my mac and i want to use my mac to develop on lejos. I searched a lot for a decent install guide but i couldn't find one. So i tried other tutorials online but it won't work. I first installed everything from the cd i also installed the phantom driver. I did this tutorial : http://www.sjefdesign.nl/?p=651 . But when i did nxjbrowse -u . i got this error :
Exception in thread "main" java.lang.NoClassDefFoundError: lejos/pc/tools/NXJBrowser
Caused by: java.lang.ClassNotFoundException: lejos.pc.tools.NXJBrowser
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)


Which is basically the same error i get when the device is not connected (But it is ...).

I also installed the plugin in eclips (32-bit) and then tried to flash it and i got this error
Code: Select all
flashing the firmware failed
java.lang.RuntimeException: magic string not found
See Eclipse error log for detailed stack trace.
.

I'm out of options... can someone help me ?
ojtwist
New User
 
Posts: 2
Joined: Tue Oct 11, 2011 10:25 am

Re: Lejos on lion osx

Postby Shawn » Tue Oct 11, 2011 10:49 am

User avatar
Shawn
Advanced Member
 
Posts: 723
Joined: Wed Sep 12, 2007 4:59 am
Location: Tokyo

Re: Lejos on lion osx

Postby ojtwist » Tue Oct 11, 2011 11:39 am

I changed my lejos version to 9. ... But i have no idea how to check if my JRE and JDK are 32 or 64 bit. Any tips on that ?
ojtwist
New User
 
Posts: 2
Joined: Tue Oct 11, 2011 10:25 am

Re: Lejos on lion osx

Postby Shawn » Wed Oct 12, 2011 8:36 am

ojtwist wrote:I changed my lejos version to 9. ... But i have no idea how to check if my JRE and JDK are 32 or 64 bit. Any tips on that ?


On Lion you will have both.

The -d32 flags are set in lejos scripts, so 32 bit will be used as desired.

The easiest way to install .9 is just to give the scripts execute permissions (see the tutorial link for more info if you need it) and cd to the /bin dir in a shell. The script should set up the paths for itself.

The plugin, however, is not aware of what to do and so keep the following in mind:

1) To flash via the plugin, OSX users must use 32 bit Eclipse

2) 32 bit AND 64 bit Eclipse both support Bluetooth/USB connections
but the user must:
EITHER
    specify -d32 in the Default VM Arguments
    [Eclipse --> preferences --> Java --> installed JREs --> select the JRE
    --> edit --> add -d32 to Default VM Arguments
    ]
OR
    specify -d32 in the
    run configuration for each program that connects to your NXT.

Shawn
User avatar
Shawn
Advanced Member
 
Posts: 723
Joined: Wed Sep 12, 2007 4:59 am
Location: Tokyo


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 5 guests

more stuff