The java in /Windows is Unka Bill's version and should
probably be avoided at all (most anyway) costs. You
do that by setting your PATH to point to the "real"
one, probably best to do so in the MyCompuker environment
variables panel.
Then a 'normal' JSDK install insists on putting a JRE under
"Program Files" (where no shell-like utility can find it
due to the embeded space " ") unless you maintain extreme
vigilance while installing and catch the right question popup.
This last JRE is the one that is plugged-in to browser-like
programs...usually.
The advice about "toscomm.dll" is relevant to a new comm package
that replaces the old Sun javax one, because Sun decided to not
support it anymore...I mean, jeez, who uses serial/parallel comm
in the modern networked world?
And you can "probably" put the .dll in the JRE/bin directory
because some secret hidden search path may look there, but you
can pretty much count on system32 being in your path at runtime...
Someday this will all be done by computer.
MS
Greg Turnipseed wrote:
SUCCESS! After poking around some more, I realized I have 3 (why???)
different versions of Java installed, and apparently I was in the wrong one.
Finally tried the third one, and got it working with the .dll going into
<javapath>\bin, the comm.jar into <javapath>\lib\ext, and the properties
file into <javapath>\lib. Thanks for the help, all.
-Greg Turnipseed
From: Greg Turnipseed <[EMAIL PROTECTED]>
Date: Thu, 10 May 2007 03:25:08 -0500
To: Marcel Kania <[EMAIL PROTECTED]>
Cc: <[email protected]>
Conversation: [Tinyos-help] Java.io.IOException: Invalid port. No comm ports
found!
Subject: Re: [Tinyos-help] Java.io.IOException: Invalid port. No comm ports
found!
Hello, Marcel. I'm not sure, but this strikes me as application-level,
whereas the problem I seem to be having is operating system/java engine
level. Where did you get the toscomm.dll file?
Thanks,
Greg Turnipseed
From: Marcel Kania <[EMAIL PROTECTED]>
Date: Wed, 09 May 2007 23:50:33 -0300
To: Greg Turnipseed <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>, <[email protected]>
Subject: Re: [Tinyos-help] Java.io.IOException: Invalid port. No comm ports
found!
Hallo,
here a short description, how I resolved this problem. I hope it's
understandable.
try this:
public class MyCommunicationClass implements MessageListener {
private MoteIF mote;
...
mote = new MoteIF(BuildSource.makePhoenix(serialAddress,
PrintStreamMessenger.err));
mote.registerListener(new FooMsg(), this); // Where FooMsg is a Msg
created with mig representing
// a
msg coming from a mote
...
// sending Messages
try {
mote.send(moteID, msg); //msg is a message generated with
mig, which is understandable by a mote
} catch (Exception e) {
e.printStackTrace();
return -1;
}
I'm using the toscomm.dll (Windows) for communication. This file has to
be located in the %jre-path%\bin-folder.
Cheers Marcel
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help