Dear all,

I am trying to use the Matlab with TinyOS, and when I compile the java files by using the command 'make matlab' in the following directory:

"/cygdrive/c/tinyos/cygwin/opt/tinyos-1.x/tools/java/net/tinyos/matlab"

I have got the error:

/$ make matlab
javac MatlabClock.java MatlabControl.java MatlabMessageListener.java MatlabMesse
nger.java;
MatlabClock.java:48: cannot access com.mathworks.jmi.Matlab
bad class file: C:\Program Files\MATLAB\R2007b\java\jar\jmi.jar(com/mathworks/jm
i/Matlab.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
   Matlab            matlab;
   ^
1 error
make: *** [matlab] Error 1

/I searched in the TinyOS-help archives, and I know it is due to the imcompatibility between different versions of Java. I used to installed two versions of Java in my computer, but now I only have the Java 2 SDK, SE v1.4.2. My version of Matlab is R2007b.
My CLASS setting is:

.;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\cup.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\Jama-1.0.1.
jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\javax.servlet.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\jazz.jar;C:\tinyos\cygwin\opt\tinyos-1.x\t
ools\java\jars\jdom.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\JLex.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\junit.jar;C:\tinyos\cygwin\opt\
tinyos-1.x\tools\java\jars\log4j-1.2.11.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\oalnf.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\org.mortba
y.jetty.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\pgjdbc2.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\plot.jar;C:\tinyos\cygwin\opt\tinyos-1.x
\tools\java\jars\pxgraphapplet.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\xercesImpl.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\xmlParserAPIs.
jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\xmlrpc-1.2-b1.jar;.;c:\program files\j2sdk_nb\j2sdk1.4.2\jre\lib\comm.jar;C:\Program Files\MATLAB\R2007b\java\jar\jmi.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\comm.jar;c:\tinyos\cygwin\opt\tinyos-1.x\tools\java

I am stuck with it, and could anyone help me with this please?

Best regards,
Ruoshui Liu
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to