Well, I'm also on Snow Leopard and I'm also having problem with Java not finding the getenv and toscomm library when they are all in /Library/java/Extensions.
On 4 November 2009 02:47, Abhay Ghatpande <[email protected]> wrote: > Has anyone managed to get MATLAB working with tinyos-2.x? > I am using MATLAB R2009b on Mac OS 10.6.1 (Snow Leopard). > (1) tinyos-2.x works flawlessly on the Mac. > (2) I can call normal Java methods in Matlab without problem > (3) I can call Matlab functions in Java without problem (using the > MatlabControl and MatServer mentioned here: > http://www.cs.virginia.edu/~whitehouse/matlab/JavaMatlab.html<http://www.cs.virginia.edu/%7Ewhitehouse/matlab/JavaMatlab.html>and > here: > http://www.cs.utoronto.ca/~bowen/code/code.html<http://www.cs.utoronto.ca/%7Ebowen/code/code.html> > ) > > Serial (USB) ports can be opened in Matlab using > sio = serial('/dev//dev/tty.usbserial-xxxxxx'); > fopen(sio); > etc. > > However, when I try, > con = connect('serial@/dev/tty.usbserial-xxxxxxx:telosb'); > I get: > Could not connect: serial@/dev/tty.usbserial-XBS38CW:telosb > con = > [] > > Similar results for any other interface such as s...@localhost:9001. It > says could not connect. (Of course I start the SerialForwarder first > before trying this). > > If I try to create any new object such as SerialForwarder or implement > a MessageListener, I get the error: > java.lang.ClassNotFoundException: null > getenv JNI library not found. Env.getenv will not work > (run the tos-install-jni tool, see man tos-install-jni for more details) > > or toscomm JNI library no found. > > The classpath includes all the necessary jnilib. > > Any ideas how to get this to work? > > Abhay > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
