[Tinyos-help] TinyOS and Matlab

Milton Aguiar miltonaguiar at netmadeira.com
Tue Dec 5 09:56:28 PST 2006


Hi all:

After doing what Michael Schippling has suggested the following error 
occurs:


1000ton at aguiar-8e616724 
/cygdrive/c/tinyos/cygwin/opt/tinyos-1.x/tools/java/net/
tinyos/matlab
$ javac MatlabClock.java
Note: MatlabClock.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.

When i recompile with /-deprecation /the following message appears:

1000ton at aguiar-8e616724 
/cygdrive/c/tinyos/cygwin/opt/tinyos-1.x/tools/java/net/
tinyos/matlab
$ javac MatlabClock.java -deprecation
MatlabClock.java:189: warning: getLabel() in javax.swing.AbstractButton 
has been
 deprecated
            else if (((JButton)source).getLabel()==START) {
                     ^
MatlabClock.java:192: warning: getLabel() in javax.swing.AbstractButton 
has been
 deprecated
            } else if (((JButton)source).getLabel()==STOP) {
                       ^
2 warnings


What should i do in this case?

Please give me a help !!

Thanks in advance

Milton Aguiar







Michael Schippling escreveu:
> Well, you have two things confused to start with.
>
> Your original problem was "javac: not found",
> which means that the execution PATH in your shell
> (I assume cygwin's bash) is not correct. javac wasn't
> found to be executed.
>
> Once the dust clears, you then want to set the CLASSPATH for matlab
> to include the results of the make that hitherto has failed to exec.
>
> Fortunately there are two reasonably easy ways to proceed and they
> should work for both issues. If you are on MSWidows you can go to
> MyComputer-Properties-Advanced-EnvironmentVariables (on XP, I think
> it a bit different on NT/W2k). There you should find "Path" in System
> Variables. Just add the directory that contains your java install bin,
> e.g.: c:\JAVA\j2sdk1.4.2_04\bin (put it BEFORE system32 or you will
> get MSbill's version of java by mistake). Also note the delimiter used,
> I think it's semi-colon ";" here...
>
> You can set a system CLASSPATH here too. There may already be one to
> edit, or create a new one and put all the paths that matlab wants, with
> ummmmm....semi-colon....errr....delimiters (I can never remember which).
>
> You can also do this for only the bash shell (assuming that you start
> matlab from a shell prompt). Edit a new batch file and put something 
> like:
>
> export PATH="/cygdrive/c/JAVA/j2sdk1.4.2_04/bin:$PATH"
> export CLASSPATH="C:/tinyos/cygwin/opt/tinyos-1.x/tools/java;$CLASSPATH"
>
> and whatever other entries you need...note that the separator for PATH
> here is colon ':', just to keep us on our virtual toes. Once you write
> the file, source it into the shell with: source [filename]
> this reads it into your shell environment.
>
> Then you should be able to do:
>
>     vincent:~ [257] type java
>     java is /cygdrive/c/JAVA/j2sdk1.4.2_04/bin/java
>
> There also seems to be a "matlab classpath.txt file" someplace if you
> follow Stephen Chou concurrent problems on this list...
>
> As I said, see the man page for bash and also basic java install and
> classpath instructions & doc to get a better understanding of setting
> these things. Try google CLASSPATH for instance.
>
> Someday this will all be done by computer.
> MS
>
> Milton Aguiar wrote:
>> I don't know how to edit the system classpath evironment. I must do 
>> the following:
>>
>> " It is important to compile the java files present in 
>> 'C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\net\tinyos\matlab' 
>> folder. We added the *'C:\MATLAB7\java\jar\jmi.jar'* to the system 
>> class-path to compile. One should not forget to add 
>> 'c:\tinyos\cygwin\opt\tinyos- 1.x\tools\java\comm.jar' and 
>> 'c:\tinyos\cygwin\opt\tinyos-1.x\tools\java' to the system class-path 
>> to compile. This will compile java files that are needed to control 
>> Matlab through java "
>>
>> How can i edit the system classpath ??
>>
>> Thanks
>>
>> Milton Aguiar
>>
>>
>>
>>
>>
>>
>>
>> Michael Schippling escreveu:
>>> Is the java install /bin directory in your PATH environment variable?
>>> try:  type javac     or:   type java
>>> from the cygwin bash shell.
>>> See:  man bash   for an excruciatingly long explanation...
>>> MS
>>>
>>>
>>> Milton Aguiar wrote:
>>>> Hi all:
>>>>
>>>> When i try to compile the TinyOS Matlab tools an error occurs:
>>>>
>>>>
>>>>
>>>> $ make matlab
>>>> javac MatlabClock.java MatlabControl.java 
>>>> MatlabMessageListener.java MatlabMesse
>>>> nger.java;
>>>> javac: not found
>>>> make: *** [matlab] Error 127
>>>>
>>>>
>>>> Can someone help me??
>>>>
>>>> Thanks in advance
>>>>
>>>>
>>>> Milton Aguiar
>>>>
>>>> _______________________________________________
>>>> Tinyos-help mailing list
>>>> Tinyos-help at Millennium.Berkeley.EDU
>>>> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 
>>>>
>>>
>>>
>>
>
>




More information about the Tinyos-help mailing list